Pad an array to a given length. The pad value will be repeatedly appended to the array to extend it to given length along each axis. If the array is already as large or larger than a given length, it will remain unchanged along that axis.
Array to pad.
A list of new lengths for each axis.
|Number, default: 0|
The value with which to pad the array.