Hi,
I'm trying to write serialization load and save methods for multi-array. For
the load method I have a function with
the prototype:
template
Hi Craig,
Sorry for the delay in this reply. Yes, for no good reason I did not
supply a collection-based interface for resize. I have implemented
such an interface and checked it into CVS. So the following should
work (assuming that A is a 3-dimensional array):
boost::array
Hi,
I'm trying to write serialization load and save methods for multi- array. For the load method I have a function with the prototype:
template
inline void load(Archive& ar, boost::multi_array
& arr, const unsigned int file_version) This function gets called when the array is serialized and should populate the multi-array arr. However this requires re-sizing arr which apparently can only be done using the extents construct e.g. arr.resize(boost::extents[3][4][2]), but I want to be able to do this for an arbitray number of dims as with reshape.
Any idea how this can be done?
Regards
Craig_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Craig Glasgow
-
Ronald Garcia