![]() |
Blitz Support : |
From: Pete Watkins (pkwatkins_at_[hidden])
Date: 2004-06-18 05:42:43
I hope someone won't mind helping out with this query. I'm impressed by
Blitz, especially the way it facilitates numerical programing by taking
away some of the book keeping necessary using just C++. I'm hoping to
use Blitz in a Monte Carlo simulation for my PhD, where speed is
absolutely critical. The central data structure I need is a vector of
vectors, where both will vary in length. My plan is to use a variable 1D
array of variable 1D arrays in Blitz++:
Array<Array<int,1>,1>
I'll then use resize(), or resizeAndPreserve() to manipulate the
structure while the simulation runs. My query is, what sort of overhead
will the resize operations in Blitz++ inccur? Would it be much faster to
explicity manage the data structure in C using pointers and the malloc,
dealloc functions to allocate and deallocate memory for the structure?
I'm hoping I can use Blitz++ as this would make my code much clearer,
and much easier to write.
Thanks very much for any help,
Pete