Automatic Differentiation with Autograd#
Differential Operators#
Returns a function that computes the gradient of fun with respect to x. |
|
|
Returns a function that computes both the value and gradient of fun with respect to x. |
Functions#
Add values to specified indices of an array. |
|
Convolve an array with a given kernel. |
|
Perform grey closing on an array. |
|
Perform grey dilation on an array. |
|
Perform grey erosion on an array. |
|
Perform grey opening on an array. |
|
Interpolate over a rectilinear grid in arbitrary dimensions. |
|
Perform least squares fitting to find the best-fit parameters for a model function. |
|
|
Compute the morphological gradient of an array. |
|
Compute the external morphological gradient of an array. |
|
Compute the internal morphological gradient of an array. |
|
Pad an array along specified axes with a given mode and padding width. |
Rescale an array from an arbitrary input range to an arbitrary output range. |
|
Compute the smooth maximum of an array using temperature parameter tau. |
|
Compute the smooth minimum of an array using temperature parameter tau. |
|
Apply a threshold to an array, setting values below the threshold to vmin and values above to vmax. |
|
|
Integrate along the given axis using the composite trapezoidal rule. |
Utilities#
Chain multiple functions together to apply them sequentially to an array. |
|
Calculate the kernel size in pixels based on the provided radius and grid spacing. |
|
Create a kernel based on the specified type in n dimensions. |
|
Decorator to ensure the objective function returns a real scalar value. |
Primitives#
Multidimensional Gaussian filter. |
|
Differentiable spline interpolation of a given order with optional endpoint derivatives. |
Inverse Design#
A circular filter for creating and applying convolution filters. |
|
A conic filter for creating and applying convolution filters. |
|
A class that computes a penalty for erosion/dilation of a parameter map not being unity. |
|
A class that combines filtering and projection operations. |
|
Calculate the grey indicator for a given array. |
|
make_filter() with a default filter_type value of circular. |
|
make_filter() with a default filter_type value of |
|
Create a penalty function based on the curvature of a set of points. |
|
|
Computes a penalty for erosion/dilation of a parameter map not being unity. |
Create a filter function based on the specified kernel type and size. |
|
|
Create a function that filters and projects an array. |
Apply a piecewise linear ramp projection to an array. |
|
Apply a tanh-based soft-thresholding projection to an array. |