xtensor-stack / xtensor-blas

BLAS extension to xtensor
BSD 3-Clause "New" or "Revised" License
158 stars 55 forks source link

fix trace for complex vals #217

Closed mircomarahrens closed 2 years ago

mircomarahrens commented 2 years ago

Regarding #141:

Changing

const auto& dM = M.derived_cast();

to

auto&& dM = xt::view_eval<T::static_layout>(M.derived_cast());

should do it.