GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GSparseSymbolic.hpp File Reference

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...
 

Detailed Description

Sparse matrix symbolic analysis class definition.

Author
Juergen Knoedlseder

Definition in file GSparseSymbolic.hpp.

Function Documentation

double cs_cumsum ( int *  p,
int *  c,
int  n 
)

cs_cumsum

Parameters
[out]pInteger array (n+1 elements).
[in]cInteger array (n elements).
[in]nNumber 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

Parameters
[in]matrixMatrix.
[in]pinvTBD.

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().