module documentation

Padding operations

Function with_const Padd array a to shape to_shape with the value const
Function with_convolution Pad array a by convolving it with array b, using the edges of array b and the centre is array a
def with_const(a: np.ndarray, to_shape: tuple[int, ...], const=0) -> np.ndarray:

Padd array a to shape to_shape with the value const

def with_convolution(a: np.ndarray, b: np.ndarray) -> np.ndarray:

Pad array a by convolving it with array b, using the edges of array b and the centre is array a