
12 Sep
2010
12 Sep
'10
3:21 p.m.
Ryan McConnehey
Do you have an example of how shape() works? The shape method isn't used in any of the multi-array tutorials. Also, the reference material says the shape method returns a list of "NumDims" but the return signature specifies a "const size_type *" is returned. How is "const size_type *" a list of dimension?
Since it is not a container, you will need to use the ::dimensionality to see
how far to iterate this bare pointer.
e.g. to put it into a bounded ublas vector vector:
const static std::size_t rank = ublas::multi_array