broadcast
- ska_sdp_exec_swiftly.fourier_transform.fourier_algorithm.broadcast(a, dims, axis)[source]
Stretch input array to shape determined by the dims and axis values. See tests for examples of how the shape of the input array will change depending on what dims-axis combination is given
- Parameters:
a – input numpy ndarray
dims – dimensions to broadcast (“stretch”) input array to; int
axis – axis along which the new dimension(s) should be added; int
- Returns:
array with new shape