[Ublas] vector_view over (T*,size)
dariomt--- via ublas <[email protected]> Mon, 21 Jan 2019 11:27:23 +0100
| Newsgroups | gmane.comp.lib.boost.ublas |
|---|---|
| Message-ID | <CAHq7APF5LvR2cOmuTQyJqg7wZfhBqwR3zin82QLLEFcggEvL4Q@mail.gmail.com> |
--===============3927346279389410121== Content-Type: multipart/alternative; boundary="000000000000520c14057ff54fd8" --000000000000520c14057ff54fd8 Content-Type: text/plain; charset="UTF-8" Hi list, Say I have a (GSL-like) span (which is basically a pointer and a length). Is it possible to build a vector-like view over that span, so that the result is usable within the ublas expression template machinery? Some kind of ublas::vector_view(T*, size)? The objective is to avoid having to copy all that data into a ublas::vector just to interoperate with other ublas code. Thanks in advance! --000000000000520c14057ff54fd8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi list,<div><br></div><div>Say I have a (GSL-like) span (= which is basically a pointer and a length).</div><div><br></div><div>Is it = possible to build a vector-like view over that span, so that the result is = usable within the ublas expression template machinery? Some kind of ublas::= vector_view(T*, size)?</div><div><br></div><div>The objective is to avoid h= aving to copy all that data into a ublas::vector just to interoperate with = other ublas code.</div><div><br></div><div>Thanks in advance!</div></div> --000000000000520c14057ff54fd8-- --===============3927346279389410121== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline