Open tdegeus opened 4 years ago
Similarly xt::keep(xt::view(...))
does not work
Indeed, xt::keep
is not supposed to work on xexpression
objects.
Is there a reason to allow this?
I think this was mainly to avoid circular dependencies. And also because xt::keep
are basic building blocs for views, so it would be weird to have them depend on it. I guess we could add a constructor that accepts a pair of iterators, so it would be possible to sintantiate it from any kind of expression
Any plan for this? I think it would be useful to be able to pass an xexpression
(or atl least a tensor) to xt::keep
and xt::drop
.
The following example:
Fails to compile: