|
Boost : |
Subject: Re: [boost] [numeric][ublas] please add vector constructor from boost::range
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2012-07-20 08:47:50
Jochen Wilhelmy wrote:
> Hi!
>
> is it possible to add a constructor for ublas::vector from boost::range?
> this would it make easier to construct from pain data (e.g. float*).
> something like boost::numeric::ublas::vector<float>
> v(boost::iterator_range<const float*>(myDataBegin, myDataEnd));
>
> -Jochen
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Lacking that, I just have a construct_from_range free function, that is then
dispatched for every kind of 1D container I use (std::vector,
boost::multi_array, ublas, other 3rd party)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk