
28 Feb
2011
28 Feb
'11
4:53 p.m.
Ramon F Herrera wrote:
I recently discovered the multi_array, which was the answer to my prayers:
typedef boost::multi_array
ExpressionArrayType; ExpressionArrayType exprTable(boost::extents[extreme_row][extreme_col]); But now I need more functionality, which can be either:
(1) Erase the current "exprTable" and create a new one, with different dimensions.
Do you mean different dimensionality? The dimensionality is part of the type and determined at compile time. Different dimensionality requires a different type.
(2) Resize the current dimensions.
Doesn't this explain resizing? http://www.boost.org/doc/libs/1_44_0/libs/multi_array/doc/user.html#sec_resi... Jeff