Boost logo

Ublas :

Subject: [ublas] vector_view over (T*,size)
From: dariomt_at_[hidden]
Date: 2019-01-21 10:27:23


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!