odl
ODL (Operator Discretization Library).
ODL is a Python library for fast prototyping focusing on (but not restricted to) inverse problems.
Modules
Classes
Operators that do not do anything mathematical, but allow bridging together operators that would otherwise be incompatible, e.g. due to array storage on different computational devices. |
|
|
Class to implement the array backend associated to each TensorSpace Implementations. |
|
A pseudo-operator that transfers arrays from one backend to another. |
|
Broadcast argument to set of operators. |
|
Cartesian product of a finite number of sets. |
|
Operator that embeds a vector into a complex space. |
|
Operator that computes the modulus (absolute value) of a vector. |
|
Operator that computes the squared complex modulus (absolute value). |
Set of complex numbers. |
|
|
Projection onto the subspace identified by an index. |
|
Adjoint operator to |
|
Operator that always returns the same value. |
|
A pseudo-operator that copies arrays from one computational device to another. |
|
Diagonal 'matrix' of operators. |
|
Discretization of a Lebesgue |
|
Representation of a |
|
Operator taking the distance to a fixed space element. |
|
Divergence operator for |
|
Set with no member elements (except |
|
A set that satisfies the field axioms. |
|
A set given by a finite number of elements. |
|
Operator that reshapes the object as a column vector. |
|
Expression type for the functional left vector multiplication. |
|
Spatial gradient operator for |
|
Operator mapping each element to itself. |
|
Operator that extracts the imaginary part of a vector. |
|
Operator taking the inner product with a fixed space element. |
|
Set of integers. |
|
An n-dimensional rectangular box. |
|
Spatial Laplacian operator for |
|
Operator mapping two space elements to a linear combination. |
|
Abstract linear vector space. |
|
A matrix acting as a linear operator. |
|
Operator multiplying by a fixed space or field element. |
|
Vector space norm as an operator. |
Exception for domain errors. |
|
Exception for not implemented errors in |
|
Exception for domain errors. |
|
Exception for operator type errors. |
|
|
Abstract mathematical operator. |
|
Expression type for the composition of operators. |
|
Expression type for the operator left scalar multiplication. |
|
Expression type for the operator left vector multiplication. |
|
Expression type for the pointwise operator multiplication. |
|
Expression type for the operator right scalar multiplication. |
|
Expression type for the operator right vector multiplication. |
|
Expression type for the sum of operators. |
|
Operator that computes |
|
Calculate the discrete partial derivative along a given axis. |
|
Take the point-wise inner product with a given vector field. |
|
Take the point-wise norm of a vector field. |
|
Take the point-wise sum of a vector field. |
|
Operator taking a fixed power of a space or field element. |
|
Cartesian product of |
|
A "matrix of operators" on product spaces. |
Set of real numbers. |
|
|
Operator that extracts the real part of a vector. |
|
An n-dimensional rectilinear grid. |
|
Rectangular partition by hypercubes based on |
|
Reduce argument over set of operators. |
|
An operator that resamples on a different grid in the same set. |
|
Operator mapping a discretized function to a new domain. |
|
Operator that samples coefficients. |
|
Operator of multiplication with a scalar. |
|
An abstract set. |
|
The intersection of several subsets. |
|
The union of several subsets. |
|
Set of fixed-length (unicode) strings. |
Set of all objects. |
|
A dummy linear space class. |
|
|
Operator computing the sum of coefficients at sampling locations. |
|
Operator mapping each element to the zero element. |
Functions
|
Calculates the absolute value for each element |
|
Calculates an implementation-dependent approximation of the principal value of the inverse cosine for each element |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic cosine for each element |
|
Calculates the sum for each element |
|
Test whether all array elements along a given axis evaluate to True. |
|
Returns True if two arrays are element-wise equal within a tolerance. |
|
Test whether any array element along a given axis evaluates to True. |
|
Returns evenly spaced values within the half-open interval [start, stop) as a one-dimensional array. |
|
Wrap |
Wrap |
|
|
Returns an array corresponding to an ODL object. |
|
Calculates an implementation-dependent approximation of the principal value of the inverse sine for each element |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic sine for each element |
|
Calculates an implementation-dependent approximation of the principal value of the inverse tangent for each element |
|
Calculates an implementation-dependent approximation of the inverse tangent of the quotient |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic tangent for each element |
|
Computes the bitwise AND of the underlying binary representation of each element |
|
Inverts (flips) each bit for each element |
|
Shifts the bits of each element |
|
Computes the bitwise OR of the underlying binary representation of each element |
|
Shifts the bits of each element |
|
Computes the bitwise XOR of the underlying binary representation of each element |
|
NumPy-like can_cast for Python Array API backends. |
|
Rounds each element |
|
Checks the device argument. |
|
Clamps each element |
|
Return a space of complex tensors. |
|
Returns the complex conjugate for each element |
|
Composes a floating-point value with the magnitude of |
|
Calculates an implementation-dependent approximation to the cosine for each element |
|
Calculates an implementation-dependent approximation to the hyperbolic cosine for each element |
|
Calculates the cumulative product of elements in the input array x. |
|
Calculates the cumulative sum of elements in the input array x. |
|
Calculates the division of each element |
|
Returns an uninitialized array having a specified shape. |
|
Returns an uninitialized array with the same shape as an input array x. |
|
Computes the truth value of |
|
Calculates an implementation-dependent approximation to the exponential function for each element |
|
Calculates an implementation-dependent approximation to |
|
Returns a two-dimensional array with ones on the kth diagonal and zeros elsewhere. |
|
Rounds each element |
|
Calculates the largest integer-valued number that is not greater than the result of dividing each element |
|
Returns a new array having a specified shape and filled with fill_value. |
|
Returns a new array filled with fill_value and having the same shape as an input array x. |
|
Convenience function for getting an |
|
Computes the truth value of |
|
Computes the truth value of |
|
Computes the square root of the sum of squares for each element |
|
Returns the imaginary part of each element |
|
Returns a boolean array where two arrays are element-wise equal within a tolerance. |
|
Tests each element |
|
Tests each element |
|
Tests each element |
|
Computes the truth value of |
|
Computes the truth value of |
|
Returns evenly spaced numbers over a specified interval. |
|
Calculates an implementation-dependent approximation to the natural logarithm for each element |
|
Calculates an implementation-dependent approximation to the base ten logarithm for each element |
|
Calculates an implementation-dependent approximation to |
|
Calculates an implementation-dependent approximation to the base two logarithm for each element |
|
Calculates the logarithm of the sum of exponentiations |
|
Computes the logical AND for each element |
|
Computes the logical NOT for each element |
|
Computes the logical OR for each element |
|
Computes the logical XOR for each element |
|
Convenience function for getting an |
Return a matrix representation of a linear operator. |
|
|
Calculates the maximum value of the input array x. |
|
Computes the maximum value for each element |
|
Calculates the arithmetic mean of the input array x. |
|
Returns coordinate matrices from coordinate vectors. |
|
Calculates the minimum value of the input array x. |
|
Calculates an implementation-dependent approximation of the principal value of the inverse cosine for each element. |
|
Calculates the product for each element |
|
Numerically negates each element |
|
Returns the next representable floating-point value for each element |
|
Return a partition with un-equally sized cells. |
|
Computes the truth value of |
|
Test whether all array elements along a given axis evaluate to True. |
|
Returns a new array having a specified shape and filled with ones. |
|
Returns a new array filled with ones and having the same shape as an input array x. |
|
Numerically positive each element |
|
Calculates an implementation-dependent approximation of |
|
Estimate the operator norm with the power method. |
|
Calculates the product of input array x elements. |
|
Returns the real part of each element |
|
Returns the reciprocal for each element |
|
Calculates the remainder of dividing each element |
|
Return a space of real tensors. |
|
Rounds each element |
|
Returns an indication of the sign of each element |
|
Determines whether the sign bit is set for each element |
|
Calculates an implementation-dependent approximation to the sine for each element |
|
Calculates an implementation-dependent approximation to the hyperbolic sine for each element |
|
Notes: |
|
Make a sparse |
|
Calculates the square root for each element |
|
Calculates the square of each element |
|
Calculates the standard deviation of the input array x. |
|
Calculates the difference for each element |
|
Calculates the sum of the input array x. |
|
Calculates an implementation-dependent approximation to the tangent for each element |
|
Calculates an implementation-dependent approximation to the hyperbolic tangent for each element |
|
Return a tensor space with arbitrary scalar data type. |
|
Returns the lower triangular part of a matrix (or a stack of matrices) x. |
|
Returns the upper triangular part of a matrix (or a stack of matrices) x. |
|
Rounds each element |
|
Return a uniformly discretized L^p function space. |
|
Return a discretization based on an existing one. |
|
Return a uniformly discretized L^p function space. |
|
Return a uniformly discretized L^p function space. |
|
Return a grid from sampling an implicit interval product uniformly. |
|
Return a grid from sampling an interval product uniformly. |
|
Return a partition with equally sized cells. |
|
Return a partition of an interval product based on a given grid. |
|
Return a partition of an interval product into equally sized cells. |
|
Calculates the variance of the input array x. |
|
Create a vector from an array-like object. |
|
Returns a new array having a specified shape and filled with zeros. |
|
Returns a new array filled with zeros and having the same shape as an input array x. |
space.