[multi_array] how to modify the dimension of an array?
Hello everybody,
i'm looking for the best way to modify the dimensions of an array. For example, i got this one:
boost::multi_array<int, 2> array ( boost::extents[3][3] );
and i want to change it in an array of 5 dimensions.
Now, what i'm doing is to create a new array of 5 dimensions and copying the first one into it, then delete the first one. But i'm sure that a more efficient way exists. No?