This module contains algebraic functions powered by the LU matrix decomposition (as provided by the <Eigen/LU> include), most notably matrix inverse and determinant.
Return matrix inverse computed using LU decomposition with partial pivoting. It is your responsibility to ensure that x is invertible, otherwise you get undefined result without any warning.
Parameters: |
|
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: |
Compte matrix inverse using LU decomposition with partial pivoting in-place. Equivalent to x = inv(x), but without overhead. It is your responsibility to ensure that x is invertible, otherwise you get undefined result without any warning.
Parameters: | x (nonint_dtype[:, :]) – matrix to invert in-place |
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Returns: | Always True to allow fast exception propagation. |
Compute determinant of a square matrix x using LU decomposition.
Parameters: | x (dtype[:, :]) – matrix whose determimant to compute |
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: | dtype |