pad_mid

ska_sdp_exec_swiftly.fourier_transform.fourier_algorithm.pad_mid(a, n, axis)[source]

Pad an array to a desired size with zeros at a given axis. (Surround the middle with zeros till it reaches the given size)

Parameters:
  • a – numpy array to be padded

  • n – size to be padded to (desired size)

  • axis – axis along which to pad

Returns:

padded numpy array