> -----Original Message-----
> From: ublas-bounces lists.boost.org
> [mailto:ublas-bounces lists.boost.org] On Behalf
Of Simon Perreault
> Sent: Wednesday, May 31, 2006 11:24 AM
> To: ublas lists.boost.org
> 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_p
roxy.htm)
Its fun to use matrix_range for the definition of fun that
means not fun
But
quite useful once you figure it out.
_______________________________________________
ublas mailing list
ublas lists.boost.org
htt
p://lists.boost.org/mailman/listinfo.cgi/ublas
|