Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2007-01-16 10:40:17


Markus Werle <numerical.simulation <at> web.de> writes:

>
> Markus Werle <numerical.simulation <at> web.de> writes:
>
> >
> > Hi!
> >
> > IMHO the behaviour of operator= for multi_array is a little bit broken.
>
> And: I cannot figure out from the docs how to prepare a multi_array for
> assignment.

not very elegant, but try

m2.resize(boost::extents[m1.shape()[0]][m1.shape()[1]]);

Does this interface need a redesign?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net