xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

`xt::pad`: more algorithms & recursion

Open tdegeus opened this issue 6 years ago • 1 comments

To make xt::pad more general and more compliant with NumPy, the xtensor implementation should be extended with:

  • More (all) algorithms that NumPy features.
  • Recursively call of pad if the pad_width along an axis >= e.shape()[axis] (only for algorithms: periodic, symmetric, [extend with future additions]).

tdegeus avatar Mar 18 '19 14:03 tdegeus

See implementation of xt::tile to make xt::pad recursive (where possible).

tdegeus avatar Jan 23 '20 07:01 tdegeus