xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

Make xt::eye faster

Open wolfv opened this issue 7 years ago • 0 comments

@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).

wolfv avatar Jul 31 '18 10:07 wolfv