Boost logo

Boost :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2002-10-22 12:41:41


On 23 Sep 2002, Neal D. Becker wrote:

> I'd like to see the following features added to multi_array:
>
> 1) Conversion to/from plain C array
>
multi_array and multi_array_ref provide a "data()" member function that
returns a pointer to the (contiguous) data that makes up a multi_array.
For example:

<snip>
boost::multi_array<int,2> A;
// ...
  int* A_data = A.data();
</snip>

Is that what you are looking for?

> 2) I/O (maybe a seperate header for this)

Could you elaborate a bit? There is a file:
boost/libs/multi_array/example/print_array.cpp

That shows a pretty naive example of streaming the contents of a
multi_array to a std::ostream. Could you elaborate on what you are
interested in?

ron

> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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