ptyrad.utils.math_ops#
Math operations of FFTs, masks, affine transformation matrices, etc.
Functions
|
Approximated quantile to prevent the 2^24 element (roughly 16.7M) limitation of torch.quantile as of now. |
|
|
|
|
|
|
|
A wrapper over torch.fft.fftshift for the last 2 dims |
Fit the affine matrix components from input and output matrices A and B |
|
|
A wrapper over torch.fft.ifftshift for the last 2 dims |
|
Create a 2D Gaussian-blurred circular mask. |
|
Create a 2D circular mask with a sigmoid transition. |
|
|
|
|
|
Creates a complex tensor with unit magnitude using the phase. |