You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xt::linalg::kron: support arguments of arbitrary number of dimensions
Before this commit, `xt::linalg::kron` only supports 2D arguments. This
commit proposes to add support for argument with any number of
dimensions. This change of behavior is coherent with what `numpy.kron`
does.
Given the implementation, it would probably make sense to return a
xexpression instead of a xarray and allow lazy evaluation. This might be
done in a separate commit. It could also be possible to have a dynamic
check of the number of dimensions and use specialized implementation for
the more common cases (i.e. 2D) at runtime, which should be more
efficient.
Tested with `./test/test_xtensor_blas --gtest_filter=xlinalg.kron*`.
0 commit comments