GammaLib
2.0.0
|
Sparse matrix symbolic analysis class definition. More...
Go to the source code of this file.
Classes | |
class | GSparseSymbolic |
Sparse matrix symbolic analysis class. More... | |
Functions | |
GMatrixSparse | cs_symperm (const GMatrixSparse &matrix, const int *pinv) |
cs_symperm More... | |
GMatrixSparse | cs_transpose (const GMatrixSparse &matrix, int values) |
double | cs_cumsum (int *p, int *c, int n) |
cs_cumsum More... | |
Sparse matrix symbolic analysis class definition.
Definition in file GSparseSymbolic.hpp.
double cs_cumsum | ( | int * | p, |
int * | c, | ||
int | n | ||
) |
cs_cumsum
[out] | p | Integer array (n+1 elements). |
[in] | c | Integer array (n elements). |
[in] | n | Number of elements. |
Evaluate p[0..n] = cumulative sum of c[0..n-1]
Definition at line 3988 of file GMatrixSparse.cpp.
Referenced by GSparseSymbolic::cholesky_symbolic_analysis(), cs_symperm(), and cs_transpose().
GMatrixSparse cs_symperm | ( | const GMatrixSparse & | matrix, |
const int * | pinv | ||
) |
cs_symperm
[in] | matrix | Matrix. |
[in] | pinv | TBD. |
Returns matrix(p,p) where matrix and matrix(p,p) are symmetric the upper part stored.
Definition at line 3835 of file GMatrixSparse.cpp.
References cs_cumsum(), GMatrixSparse::free_elements(), G_MAX, G_MIN, GMatrixBase::m_cols, GMatrixBase::m_colstart, GMatrixBase::m_data, GMatrixBase::m_elements, and GMatrixSparse::m_rowinx.
Referenced by GSparseNumeric::cholesky_numeric_analysis(), and GSparseSymbolic::cholesky_symbolic_analysis().
GMatrixSparse cs_transpose | ( | const GMatrixSparse & | matrix, |
int | values | ||
) |
Definition at line 3921 of file GMatrixSparse.cpp.
References cs_cumsum(), GMatrixBase::is_empty(), GMatrixBase::m_cols, GMatrixBase::m_colstart, GMatrixBase::m_data, GMatrixBase::m_elements, GMatrixSparse::m_rowinx, and GMatrixBase::m_rows.
Referenced by GSparseSymbolic::cs_amd(), and GSparseSymbolic::cs_counts().