Recently I've used a lot of FFT and probabilistic (random number generation) stuff, at the moment I'm working primarily with ODE solvers. Although I would consider a non-GSL option for one particular...
Thanks everyone again, Lindley for the breakdown of 1) and 2) and and Paul for the great explanation of the differences between member functions and non-member functions, and VictorN for the link. ...
Thanks for the help Lindley. Someone on another forum had suggested using static to me, and then of course I had other problems. I had thought of passing this, the problem is that I am actually using...
I am doing numerical work and am using the GSL (GNU scientific library) to help me with my endeavors. I recently had some code working procedurally, and then switched over to object...
Ok, here is the code. Some quick comments. First off, this is all being done in linux. Not all of it is relevant, I just zipped up the whole directory structure. If you look in the make file (in the...
Paul, while it is helpful for you to tell me to "simply" debug the program, I have believe it or not been trying to do that. I also know that C++ does strange things. What I am asking is for more...
Hello,
I have a very strange issue with a program I'm trying to debug. First of all, the program is a monte carlo simulation, which means that it does exactly the same process over and over again,...
Hello,
I have the following very bizarre problem. I have written some code I have to integrate with a larger part of C++ programming. This program has some sketchy segfault issues. In particular,...
Hey, thanks for the post but right after I wrote this I got a hit on google I somehow missed before, which is the Gnu Scientific Library (GSL). I just got it installed (its very easy on Ubuntu...
Hello, I'm a physicist working on some numerical stuff. I need a good random number generator package that generates numbers from basic distributions (for my current application I just need uniform...
It was actually the copy constructor that was the problem... to be honest I'm largely self taught in the actual syntax of C++ (the courses I've had focused on algorithms in-class, so the instructor...
oh PS if you actually want to try and compile this, there is another function called increment that you will need, I didn't post it because it along with its header file exceeded the 5 file limit,...
My goal was to sort a list of outputted vectors by length. I ended up trying to do this by creating a simple class that stored the vector, and the length of the vector. I then overloaded the <...
True, fair enough it was in algorithm, however regardless why would using namespace std throw an error if not used in conjunction with #include <iostream> ? Also, why is it bad that they are macros?...
I'm a physics graduate student, so I'm implementing some relatively mathematical stuff in visual studio at the moment, and I was writing a class that would act like a very particular kind of array....