|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-09-07 08:32:37
On Thursday 07 September 2006 14:03, Guimond, Alexandre wrote:
> Hi.
>
> i'm trying to construct a vector from a regular c array pointer
> containing the data. I would also like the c array to be used for the
> vector operations as opposed to the data being copied to the vector so
> that any operation on the data is reflected on the c array. basically, i
> would like to wrap my buffers in vectors. for example
please have a look at storage.hpp. The classes array_adaptor and
shallow_array_adaptor (warning: experimental & dangerous) provide such
functionality. However, as i wrote in reply to "Question about ublas vector"
the ublas design does not work well with preallocated storage.
mfg
Gunter