Boost logo

Boost :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-01-06 14:20:18


I believe there is an error in the example for boost::multi_array:

   typedef boost::multi_array array_type;
   array_type A(boost::extents[3][4][2]);

   // use tuples (here a pair) in a 3x4 matrix
   assign_all( A ) (1,1)(2,2)(3,3)
                   (4,4)(5,5)(6,6)
                   (7,7)(8,8)(9,9);

Surely this is assigning a 3 x 3 x 2 array and not the 3 x 4 x 2 array in
the example?

Regards,
Reece Dunn

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk