aspcore.matrices
Functions for common operations on matrices.
Some examples include constructing a block matrix, ensure positive definiteness, applying a function to individual blocks of a block matrix.
References
Functions
|
Applies the same function to each block in the block matrix mat. |
|
Creates a block diagonal matrix |
|
This function can easily be replaced by apply_blockwise. |
|
Creates a block diagonal matrix from a single block. |
|
Generates a block matrix of toeplitz blocks from a set of columns and rows The values in the last axis for each (m,n) block is turned into a toeplitz matrix. |
|
Transposes each block individually in a block matrix. |
|
Converts from a standard block matrix to a parametrized form |
|
Applies the same function to each matrix in the array |
|
Symmetrizes mat if it is not already Hermitian |
|
|
|
Modifies mat to ensure it is positive semidefinite if it is not already. |
|
Returns true if mat is hermitian, false otherwise |
Deprecated, use is_hermitian instead |
|
|
Returns true if mat is positive definite, false otherwise |
|
Returns true if mat is positive semidefinite, false otherwise |
|
Solves a linear least squares problem with L2 regularization |
|
Multiplies two parametriced block matrices without explicitly converting to full matrices. |
Converts from a parametrized block matrix to the standard form |
|
Transpose of a block matrix without converting back from parametrized form |
|
|
|
Adds a scaled identity matrix to the matrix so that the condition number is at most max_cond |
|
|
Either truncates or pads ar at the end with zeros, so that the length along axis is equal to length. |