Boost logo

Boost :

From: rwgk (rwgk_at_[hidden])
Date: 2002-02-11 19:00:48


--- In boost_at_y..., Damien Fisher <damien_at_m...> wrote:
> In general, this is difficult.
>
> However, it would be fairly straightforward, and quite valuable, to
> provide resizing on the first dimension at least (assuming a
standard
> implementation, at any rate).

This could also be implemented by nesting arrays.

An alternative would be to use the "versa" type
that is outlined at (WORK IN PROGRESS!)

http://cci.lbl.gov/cctbx/doc/html/page_array_family.html

af::versa<double, grid_accessor<3> > v(10, 4, 5);
v.resize(af::grid_accessor<3>(20, 4, 5));

I have not tried this, but I think it should work.

Ralf

P.S.: Just to prove it is there, the current source (minus the
Python-generated header files for overloading the operators)
is here:

http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/cctbx/cctbx/cctbx/array_family/

Content is subject to change without notice.


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