On May 6, 9:47 am, yuva...@gmail.com wrote: > I have a C++ program that does an economic simulation. The program > have one function with many nested loops (3-5 levels of nesting), each > run in order of 10-1000 times. All loop limits are constants. > Inside the loops, simple calculations are done (exp is the heaviest), > and some global matrices are accessed (both for reading and writing). > The global matrices are very large ~10M. > > I'm using floats for most of my computations. Accuracy is not very > important, and speed is the most > important, because I need to later find a minimum for that function. >
Don't assume that float is faster than double just because it is (presumably) smaller on your platform. REH _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus