Re: [Numpy-discussion] Add pad_to_shape and pad_to_match for simpler padding if a target size is already known

2021-04-24 Thread czorio4
shape, ...) Kind regards, Mathijs Op za 24 apr. 2021 om 17:54 schreef Ralf Gommers : > > > On Thu, Apr 15, 2021 at 11:54 AM czorio4 wrote: > >> Hello all, >> >> I'm only two weeks late with this message about my pull request >> <https://github.com/numpy/numpy/

[Numpy-discussion] Add pad_to_shape and pad_to_match for simpler padding if a target size is already known

2021-04-15 Thread czorio4
Hello all, I'm only two weeks late with this message about my pull request that adds functions that allow the user to pad to a target shape, instead of adding a certain amount to each axis. For example: x = np.ones((3, 3)) # We want an output s