I am looking for a numerical library to do matrix manipulations and random number generators in Dev-C++ under Bloodshed. I was wondering if anyone could recommend any and also tell me how to go about using the libraries (I'm new to this and am still a little unclear how to make use of the libraries in one of my own programs). I've tried just putting the .h and .cpp files in my project but I still get errors. thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to download Blitz++, but as I described before, I can't figure out how to then use the .h and .cpp files within my own programs. I'm missing the .a file and it doesn't give explicit instructions how to use the library with windows (as is with most programs they only give infor for a linux environment)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cstdlib (stdlib.h for C) provides random number generation. It's a bit crude, but can used as a basis for better generation. Try using Google for information on rand and srand.
As for matrix manipulation, not something I know much about, but according to my The C++ Programming Language, valarray and slice can be used to implement vectors.
Derek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I hesitate to say anything here, but I am a big mouth. I have used the GNU Scientific Library (gsl) a LOT with gcc and Cygwin. I like it, gives you access to a gazillion types of functions, random, Bessel, Airy....
The reason I hestitate to say anything is that I have *not* used it with Dev, and the one person who tried it that I tried to help I was not real effective with.
I am looking for a numerical library to do matrix manipulations and random number generators in Dev-C++ under Bloodshed. I was wondering if anyone could recommend any and also tell me how to go about using the libraries (I'm new to this and am still a little unclear how to make use of the libraries in one of my own programs). I've tried just putting the .h and .cpp files in my project but I still get errors. thanks
What have you tried so far?
Derek
I tried to download Blitz++, but as I described before, I can't figure out how to then use the .h and .cpp files within my own programs. I'm missing the .a file and it doesn't give explicit instructions how to use the library with windows (as is with most programs they only give infor for a linux environment)
Do you need to download anything?
cstdlib (stdlib.h for C) provides random number generation. It's a bit crude, but can used as a basis for better generation. Try using Google for information on rand and srand.
As for matrix manipulation, not something I know much about, but according to my The C++ Programming Language, valarray and slice can be used to implement vectors.
Derek
I hesitate to say anything here, but I am a big mouth. I have used the GNU Scientific Library (gsl) a LOT with gcc and Cygwin. I like it, gives you access to a gazillion types of functions, random, Bessel, Airy....
The reason I hestitate to say anything is that I have *not* used it with Dev, and the one person who tried it that I tried to help I was not real effective with.
Anyway, here is the link:
http://www.gnu.org/software/gsl/
There is also something running around called the Matrix Template Library that I have zero experience with:
http://www.osl.iu.edu/research/mtl/
Wayne