Properties

double danceq::internal::SparseMatrix::get_norm(void) const

Returns the Frobenius norm of the matrix.

\[\mathrm{norm} = \sqrt{\sum_{i,j} \vert a_{i,j}\vert^2}\]

Returns:

norm

bool danceq::internal::SparseMatrix::is_zero(void) const

Checks if all matrix elements are zero.

Returns:

true if all elements are zero otherwise false

bool danceq::internal::SparseMatrix::is_hermitian(void) const

Checks if the matrix is hermitian (or symmetric if ScalarType is real).

\[a_{i,j} = \text{conj}\left({a_{j,i}}\right) \, ,\,\forall i,j\]

Returns:

true if matrix is hermitian otherwise false

bool danceq::internal::SparseMatrix::is_diagonal(void) const

Checks if the matrix is diagonal.

\[M_{i,j} = 0 \, ,\,\forall i\neq j\]

Returns:

true if matrix is diagonal otherwise false

uint64_t danceq::internal::SparseMatrix::get_nnz(void) const

Returns number of non-zero elements.

This is simply the size of data.

Returns:

number of non-zero elements

uint64_t danceq::internal::SparseMatrix::max_number_of_cols_per_row(void) const

Returns the maximal number columns in a single row.

Returns:

maximum