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
Pads the data array given the current options (returns a new array).
Options:
size: Defines the number of fields that will be expanded. The default value is 1. The possible type values are:
Number: If the value is just a number it will expand in all directions with that value.
Array of numbers: It will expand in each direction given the values, for the array case the two values are left and right and for the matrix case are left, up, right, down
value: Determine how to fill the values, if the value don't match with the next strings, the new values are going to be filled with that value. The default value is 0. The special strings are:
'circular': Pad with circular repetition of elements within the dimension.
'replicate': Pad by repeating border elements of array.
'symmetric': Pad array with mirror reflections of itself. In this case the size shouldn't be bigger than the dimensions.
output: Instead of creating a new array, the returned value should be in this variable.