xtensor
xtensor copied to clipboard
Make xt::eye faster
@tdegeus uses xt::eye often in his code. We need to speed it up!
The most straightforward way to speed it up is by using the assign_to(E) mechanism.
We should probably also switch the default value type to double (currently bool i think, which is really inappropriate on many levels).