multi_array - changing number of elements
Hello,
how can I change the number of elements in an array ?
I want to do following:
typedef boost::multi_array
Hi Fritz, I believe that the following is what you are looking for: A2.resize(extents[2][3]); Cheers, ron On Nov 21, 2005, at 1:21 PM, fritz.birnbacher@t-online.de wrote:
Hello,
how can I change the number of elements in an array ?
I want to do following:
typedef boost::multi_array
array_type; array_type::extent_gen extents; array_type A1(extents[2][3]); array_type A2; A2 = A1
best regards
Fritz Birnbacher
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi Ron,
thank you.
Next time I look closer to the documentation.
ciao
"Ronald Garcia"
Hi Fritz,
I believe that the following is what you are looking for:
A2.resize(extents[2][3]);
Cheers, ron
On Nov 21, 2005, at 1:21 PM, fritz.birnbacher@t-online.de wrote:
Hello,
how can I change the number of elements in an array ?
I want to do following:
typedef boost::multi_array
array_type; array_type::extent_gen extents; array_type A1(extents[2][3]); array_type A2; A2 = A1
best regards
Fritz Birnbacher
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
fritz.birnbacher@t-online.de
-
Ronald Garcia