fips.linalg.LinearOperator#
- class fips.linalg.LinearOperator(shape)[source]#
Bases:
LinearOperatorA real matrix in one of fips’s forms, for multiplying, adding, transposing and solving.
The base class of
DenseOperator,SparseOperator,DiagonalOperator,BlockDiagonalOperatorandKroneckerOperator: build one of those, or letas_linear_operator()choose. A form has no labels; anOperatorputs aSpaceon each of its axes.A new form subclasses this one and implements
_matmatand_transpose. Every other method has a default that is right for any form, which the subclass overrides where its form has a cheaper way. A form that is neither dense nor sparse also gets a SciPy sparse matrix in_matmat, from a product with aSparseOperator. A covariance form with a root cheaper than the Cholesky factor of its dense matrix (the one a draw is made with) overrides_make_root. A form that keeps something out of its pickle (a cache) overrides__getstate__starting from this class’s, which leaves out SciPy’s own attributes and the root a draw is made with.See also
as_linear_operatorThe form that fits an array or a sparse matrix.
fips.OperatorA form with a space on each axis.
Methods
|
Return the form as a dense NumPy array. |
|
Return the main diagonal; a sparse or diagonal form reads it from its entries. |
|
Return |
|
Return the logarithm of the determinant, for a symmetric positive-definite form. |
|
Solve |
|
Return a square root \(L\) with \(L L^T\) equal to this symmetric positive-definite form. |
|
Return the sum of the main diagonal. |