Utilities in cr.sparse module¶
Some checks and utilities for matrices (2D arrays)¶
|
Returns the transpose of an array |
|
Returns the conjugate transpose of an array |
|
Checks if an array is a matrix |
|
Checks if an array is a square matrix |
|
Checks if an array is a symmetric matrix |
|
Checks if an array is a Hermitian matrix |
Checks if an array is a symmetric positive definite matrix |
|
Checks if a matrix has orthogonal columns |
|
Checks if a matrix has orthogonal rows |
|
Checks if a matrix has unitary columns |
|
Checks if a matrix has unitary rows |
Row wise and column wise norms for signal/representation matrices¶
|
Computes the l_1 norm of each column of a matrix |
|
Computes the l_1 norm of each row of a matrix |
|
Computes the l_2 norm of each column of a matrix |
|
Computes the l_2 norm of each row of a matrix |
Computes the l_inf norm of each column of a matrix |
|
Computes the l_inf norm of each row of a matrix |
|
Computes the squared l_2 norm of each column of a matrix |
|
Computes the l_2 norm of each row of a matrix |
|
Normalize each column of X per l_1-norm |
|
Normalize each row of X per l_1-norm |
|
Normalize each column of X per l_2-norm |
|
Normalize each row of X per l_2-norm |
Sparse representations¶
Following functions analyze or construct representation vectors which are known to be sparse.
Returns the values of non-zero entries in x |
|
Returns the indices of non-zero entries in x |
|
|
Randomizes the rows in X |
|
Randomizes the columns in X |
|
Returns the indices of K largest entries in x by magnitude |
|
Returns the indices and corresponding values of largest K non-zero entries in a vector x |
|
Returns the sorted indices and corresponding values of largest K non-zero entries in a vector x |
|
Keeps only largest K non-zero entries by magnitude in a vector x |
|
Builds a sparse signal from its non-zero entries (specified by their indices and values) |
Returns the ratio of largest and smallest values (by magnitude) in x (dB) |
|
Returns the ratio of largest and smallest non-zero values (by magnitude) in x (dB) |
Sparse representation matrices (row-wise)
|
Returns the indices of K largest entries by magnitude in each row of X |
|
Picks K entries from each row of X specified by indices matrix |
|
Keeps only largest K non-zero entries by magnitude in each row of X |
Sparse representation matrices (column-wise)
|
Returns the indices of K largest entries by magnitude in each column of X |
|
Picks K entries from each column of X specified by indices matrix |
|
Keeps only largest K non-zero entries by magnitude in each column of X |