![]() |
Classes | |
class | blaze::SparseSubmatrix< MT, AF, SO >::SubmatrixElement< MatrixType, IteratorType > |
Access proxy for a specific element of the sparse submatrix. More... | |
class | blaze::SparseSubmatrix< MT, AF, SO >::SubmatrixIterator< MatrixType, IteratorType > |
Iterator over the elements of the sparse submatrix. More... | |
class | blaze::SparseSubmatrix< MT, AF, SO > |
View on a specific submatrix of a sparse matrix.The SparseSubmatrix template represents a view on a specific submatrix of a sparse matrix primitive. The type of the sparse matrix is specified via the first template parameter: More... | |
SparseSubmatrix operators | |
template<typename MT , bool AF, bool SO> | |
void | blaze::reset (SparseSubmatrix< MT, AF, SO > &sm) |
Resetting the given sparse submatrix. More... | |
template<typename MT , bool AF, bool SO> | |
void | blaze::reset (SparseSubmatrix< MT, AF, SO > &sm, size_t i) |
Reset the specified row/column of the given sparse submatrix. More... | |
template<typename MT , bool AF, bool SO> | |
void | blaze::clear (SparseSubmatrix< MT, AF, SO > &sm) |
Clearing the given sparse matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isDefault (const SparseSubmatrix< MT, AF, SO > &sm) |
Returns whether the given sparse submatrix is in default state. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isIntact (const SparseSubmatrix< MT, AF, SO > &sm) |
Returns whether the invariants of the given sparse submatrix are intact. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isSymmetric (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is symmetric. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isHermitian (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is Hermitian. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isLower (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is a lower triangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isUniLower (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is a lower unitriangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isStrictlyLower (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is a strictly lower triangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isUpper (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is an upper triangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isUniUpper (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is an upper unitriangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isStrictlyUpper (const SparseSubmatrix< MT, AF, SO > &sm) |
Checks if the given sparse submatrix is a strictly upper triangular matrix. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isSame (const SparseSubmatrix< MT, AF, SO > &a, const SparseMatrix< MT, SO > &b) |
Returns whether the given sparse matrix and submatrix represent the same observable state. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isSame (const SparseMatrix< MT, SO > &a, const SparseSubmatrix< MT, AF, SO > &b) |
Returns whether the given sparse matrix and submatrix represent the same observable state. More... | |
template<typename MT , bool AF, bool SO> | |
bool | blaze::isSame (const SparseSubmatrix< MT, AF, SO > &a, const SparseSubmatrix< MT, AF, SO > &b) |
Returns whether the two given submatrices represent the same observable state. More... | |
|
inline |
Clearing the given sparse matrix.
sm | The sparse matrix to be cleared. |
Clearing a sparse submatrix is equivalent to resetting it via the reset() function.
|
inline |
Returns whether the given sparse submatrix is in default state.
sm | The sparse submatrix to be tested for its default state. |
This function checks whether the submatrix is in default state. For instance, in case the submatrix is instantiated for a built-in integral or floating point data type, the function returns true in case all submatrix elements are 0 and false in case any submatrix element is not 0. The following example demonstrates the use of the isDefault function:
|
inline |
Checks if the given sparse submatrix is Hermitian.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is Hermitian. The submatrix is considered to be Hermitian if it is a square matrix whose transpose is equal to its conjugate transpose ( ). The following code example demonstrates the use of the function:
|
inline |
Returns whether the invariants of the given sparse submatrix are intact.
sm | The sparse submatrix to be tested. |
This function checks whether the invariants of the sparse submatrix are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function:
|
inline |
Checks if the given sparse submatrix is a lower triangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is a lower triangular matrix. The matrix is considered to be lower triangular if it is a square matrix of the form
or
matrices are considered as trivially lower triangular. The following code example demonstrates the use of the function:
|
inline |
Returns whether the given sparse matrix and submatrix represent the same observable state.
a | The sparse submatrix to be tested for its state. |
b | The sparse matrix to be tested for its state. |
This overload of the isSame function tests if the given submatrix refers to the full given sparse matrix and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
|
inline |
Returns whether the given sparse matrix and submatrix represent the same observable state.
a | The sparse matrix to be tested for its state. |
b | The sparse submatrix to be tested for its state. |
This overload of the isSame function tests if the given submatrix refers to the full given sparse matrix and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
|
inline |
Returns whether the two given submatrices represent the same observable state.
a | The first sparse submatrix to be tested for its state. |
b | The second sparse submatrix to be tested for its state. |
This overload of the isSame function tests if the two given submatrices refer to exactly the same part of the same sparse matrix. In case both submatrices represent the same observable state, the function returns true, otherwise it returns false.
|
inline |
Checks if the given sparse submatrix is a strictly lower triangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is a strictly lower triangular matrix. The matrix is considered to be lower triangular if it is a square matrix of the form
The following code example demonstrates the use of the function:
|
inline |
Checks if the given sparse submatrix is a strictly upper triangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is a strictly upper triangular matrix. The matrix is considered to be upper triangular if it is a square matrix of the form
The following code example demonstrates the use of the function:
|
inline |
Checks if the given sparse submatrix is symmetric.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is symmetric. The submatrix is considered to be symmetric if it is a square matrix whose transpose is equal to itself ( ). The following code example demonstrates the use of the function:
|
inline |
Checks if the given sparse submatrix is a lower unitriangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is a lower unitriangular matrix. The matrix is considered to be lower triangular if it is a square matrix of the form
The following code example demonstrates the use of the function:
|
inline |
Checks if the given sparse submatrix is an upper unitriangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is an upper triangular matrix. The matrix is considered to be upper triangular if it is a square matrix of the form
The following code example demonstrates the use of the function:
|
inline |
Checks if the given sparse submatrix is an upper triangular matrix.
sm | The sparse submatrix to be checked. |
This function checks if the given sparse submatrix is an upper triangular matrix. The matrix is considered to be upper triangular if it is a square matrix of the form
or
matrices are considered as trivially upper triangular. The following code example demonstrates the use of the function:
|
inline |
Resetting the given sparse submatrix.
sm | The sparse submatrix to be resetted. |
|
inline |
Reset the specified row/column of the given sparse submatrix.
sm | The sparse submatrix to be resetted. |
i | The index of the row/column to be resetted. |
This function resets the values in the specified row/column of the given sparse submatrix to their default value. In case the given submatrix is a rowMajor matrix the function resets the values in row i, if it is a columnMajor matrix the function resets the values in column i. Note that the capacity of the row/column remains unchanged.