
30 Dec
2009
30 Dec
'09
5:54 p.m.
i am trying to initialize all the elements in boost::multi_array type to zero, so far, with out success. At tried using std::fill for 1-dim boost::multi_array and it worked. Once i tried std:fill on 2-dim boost::multi_array it haven't worked any more.
One approach is the use multi_array::data() and
multi_array::num_elements() to get pointer-based iterators to the
underlying raw storage:
boost::multi_array