API Reference#
Array#
|
Create a multidimensional array. |
Array creation#
|
Convert the input to an array. |
|
Return a new array with values set to ones. |
|
Return a new array of ones with the same shape and type as a given array. |
|
Return a new array with values set to zeros. |
|
Return a new array of zeros with the same shape and type as a given array. |
|
Return a new array with values drawn from a uniform distribution. |
|
Return a new array with values drawn from a normal distribution. |
Functions#
Math operations#
|
Add arrays element-wise. |
|
Subtract arrays element-wise. |
|
Multiply arrays element-wise. |
|
First array elements raised to powers from second array, element-wise. |
|
Calculate the exponential of the input array. |
|
Calculate the exponential of the input array * 1j. |
|
Sum of array elements. |
Calculate the absolute value squared, element-wise. |
|
|
Compute the 2-dimensional discrete Fourier Transform. |
|
Evaluates the Einstein summation convention on the operands. |
|
Compute tensor dot product along specified axes. |
|
Rebin an array. |
Array manipulation#
|
Return a slice of the input array. |
Cost functions#
|
Compute the normalized sum squared error between two arrays. |
Function API#
|
Base class for representing functions that operate on |
Optimization#
|
Minimize a scalar function of one or more variables using the L-BFGS-B algorithm. |
Utilities#
Shapes#
|
Compute a circle with anti-aliasing. |
|
Compute a circular mask. |
|
Compute a hexagon mask. |
|
Compute a horizontal slit mask. |
Image tools#
|
Compute image centroid location. |
|
Fix masked entries in a 2-dimensional array via median filtering. |
|
Shift an array via FFT. |
|
Compute the subpixel image translation to register the input array to a reference array. |
Zernike polynomials#
|
Compute the circular Zernike polynomial for a given mask. |
|
Compute a Zernike basis set for a given mask. |
|
Create an OPD based on the supplied Zernike coefficients. |
|
Fit a Zernike basis set to an OPD. |
|
Fit and remove a Zernike basis set from an OPD. |
|
Compute the Zernike coordinate system for a given mask. |