|
Boost Users : |
Subject: Re: [Boost-users] multi-array data ownership
From: Anton Daneyko (self_at_[hidden])
Date: 2009-05-07 20:41:46
You can use multi_array_ref which is the multiarray that does not maintain
the lifetime of it's data.
http://www.boost.org/doc/libs/1_38_0/libs/multi_array/doc/reference.html#multi_array_ref
On Thu, May 7, 2009 at 2:48 PM, gtsml owevwr <gtsml.owevwr_at_[hidden]>wrote:
> Hi,
> I want to use multi-array but the original data is coming from, let say, a
> std::vector<float>.
> The data is quite big, do I need to copy it into a multi-array?
> Or maybe I can use a "view" as a proxy on top of the original data and
> therefore avoid a costly copy?
>
> Thanks,
> Frank
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net