xtensor-stack / xtensor

C++ tensors with broadcasting and lazy computing
BSD 3-Clause "New" or "Revised" License
3.33k stars 398 forks source link

views with xtensor_fixed #988

Closed Thierry-Dumont closed 6 years ago

Thierry-Dumont commented 6 years ago

Need to add

include "xtensor/xtensor.hpp"

so that things like: xt::view(u1, xt::range(1,3))= xt::view(u2, xt::range(1,3))+200*view(u2, xt::range(0,2)); work.

SylvainCorlay commented 6 years ago

Hi! Thanks for coming by!

I am not quite sure what the issue with xtensor_fixed is from your report. Could you elaborate a bit?

JohanMabille commented 6 years ago

xtensor.hpp needs to be included in xview.hpp, otherwise taking a view on a xtensor_fixed fails to compile because the temporary type of the view is incomplete.