List Info

Thread: Vector from existing data




Vector from existing data
user name
2006-05-31 18:25:12
> -----Original Message-----
> From: ublas-bounceslists.boost.org 
> [mailto:ublas-bounceslists.boost.org] On Behalf
Of Simon Perreault
> Sent: Wednesday, May 31, 2006 11:24 AM
> To: ublaslists.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
ublaslists.boost.org
htt
p://lists.boost.org/mailman/listinfo.cgi/ublas
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )