|
Ublas : |
Subject: Re: [ublas] Adapt an externally allocated array to matrix?
From: andrea carbone (andrea.carbone_at_[hidden])
Date: 2009-04-30 06:14:54
uhmmm sorry I previously posted the wrong link (even if related to your
question).
Take a look at the following thread:
http://archives.free.net.ph/message/20061120.113745.ff94c45e.en.html
liu chang wrote:
>
> Is it possible to adapt a C array allocated elsewhere as the storage
> of a dense matrix/vector? i.e.
>
> matrix<float, row_major, ???> a(size1, size2, float*);
>
> There's no mention of this in the documentation, but it looks like a
> custom storage class can play the trick.
>
> As this is required whenever boost::ublas interfaces with other linear
> algebra libraries, I'm sure someone has an implementation floating
> around somewhere. Simply using "float*" doesn't work though :(
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
>
-- View this message in context: http://www.nabble.com/Adapt-an-externally-allocated-array-to-matrix--tp23312056p23313390.html Sent from the Boost - uBLAS mailing list archive at Nabble.com.