-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, having taken a look at a few textbooks that discuss numerical methods and C programming, I was gladly surprised when browsing through "programming in C with numerical methods for engineers" by Rojiani. I understand of course it's important that one need to have a solid background in numerical…
>>> More
-
as seen on Geeks with Blogs
- Search for 'Geeks with Blogs'
Numerical Analysis – When, What, (but not how) Once you understand the Math & know C++, Numerical Methods are basically blocks of iterative & conditional math code. I found the real trick was seeing the forest for the trees – knowing which method to use for which situation. Its pretty easy…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a way to comunicate a numeric method library, that can exploit all .net's (numerical methods called by .net that does SQL Server things) habilities?,
What library do you recomend,
maybe using MATLAB, R?
How to comunicate SQL Server and .net with such library or libraries?
Do you have…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I am going to write a custom solver for linear system.
I would like to survey the typical problems involved the linear system solving in games. So that I can custom optimization on these problems based on the shape of the matrix.
currently I am focus on these problems:
B-Spline editing (I use…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I've implemented a simple simulation of two planets (simple 2D disks really) in which the only force is gravity and there is also collision detection/response (collisions are completely elastic). I can launch one planet into orbit of the other just fine.
The collision detection code though does not…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I suppose the naive implementation of a + operator for matrices (2D for instance)
in C++ would be:
class Matrix {
Matrix operator+ (Matrix other) const {
Matrix result;
// fill result with *this.data plus other.data
return result;
}
}
so we could use it like
Matrix a;
Matrix…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What is the best way to scatter a Fortran 90 matrix by its rows rather than columns? That is, let's say I have a matrix a(4,50) and I want to MPI_SCATTER it onto two processes where each part is alocal(2,50), where rank 0 has rows 1 and 2, and rank 1 has 3 and 4. Now, in C, this is simple since arrays…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on a project, written in Java, which requires that I build a very large 2-D sparse array. Very sparse, if that makes a difference. Anyway: the most crucial aspect for this application is efficency in terms of time (assume loads of memory, though not nearly so unlimited as to allow me…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How can I define a array of boost matrices as a member variable?
None of the following worked.
boost::numeric::ublas::matrix arrayM(1, 3)[arraySize];
boost::numeric::ublas::matrix(1, 3) arrayM[arraySize];
boost::numeric::ublas::matrix arrayM[arraySize](1, 3);
Thanks,
Ravi.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm starting to learn about 3D rendering and I've been making good progress. I've picked up a lot regarding matrices and the general operations that can be performed on them.
One thing I'm still not quite following is OpenGL's use of matrices. I see this (and things like it) quite a lot:
x y z…
>>> More