API
It would be great to be able to do
std::vector<double> data(size);
xt::tensor_pointer<double, 2> a(data, shape);
and then do normal operations with a. An advantage is that a could also for example be a member variable.
Implementation
Such a classes could be aliases for
xarray_adaptor<xbuffer_adaptor<...>, ...>
xtensor_adaptor<xbuffer_adaptor<...>, ...>
see
|
using return_type = xarray_adaptor<buffer_type, L, std::decay_t<SC>>; |
API
It would be great to be able to do
and then do normal operations with
a. An advantage is thatacould also for example be a member variable.Implementation
Such a classes could be aliases for
see
xtensor/include/xtensor/xadapt.hpp
Line 101 in a57a6fa