Boost logo

Ublas :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-05-31 14:25:12


> -----Original Message-----
> From: ublas-bounces_at_[hidden]
> [mailto:ublas-bounces_at_[hidden]] On Behalf Of Simon Perreault
> Sent: Wednesday, May 31, 2006 11:24 AM
> To: ublas_at_[hidden]
> Subject: [ublas] Vector from existing data
>
> Hi,
>
> Is there a way to make a vector from existing data without
> copying and with
> minimal overhead? Basically the vector shouldn't own the
> data, just use it.

Yes, use vector_range
(http://www.boost.org/libs/numeric/ublas/doc/vector_proxy.htm)

Its fun to use matrix_range for the definition of fun that means not fun
:) But quite useful once you figure it out.