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

Sparse matrix class definition. More...

#include <string>
#include "GMatrixBase.hpp"

Go to the source code of this file.

Classes

class  GMatrixSparse
 Sparse matrix class interface definition. More...
 

Macros

#define G_SPARSE_MATRIX_DEFAULT_MEM_BLOCK   512
 
#define G_SPARSE_MATRIX_DEFAULT_STACK_ENTRIES   1000
 
#define G_SPARSE_MATRIX_DEFAULT_STACK_SIZE   512
 

Functions

GMatrixSparse operator* (const GMatrixSparse &matrix, const double &scalar)
 Multiply matrix by scalar. More...
 
GMatrixSparse operator* (const double &scalar, const GMatrixSparse &matrix)
 Multiply matrix by scalar. More...
 
GMatrixSparse operator/ (const GMatrixSparse &matrix, const double &scalar)
 Divide matrix by scalar. More...
 

Detailed Description

Sparse matrix class definition.

Author
Juergen Knoedlseder

Definition in file GMatrixSparse.hpp.

Macro Definition Documentation

#define G_SPARSE_MATRIX_DEFAULT_MEM_BLOCK   512

Definition at line 35 of file GMatrixSparse.hpp.

Referenced by GMatrixSparse::init_members().

#define G_SPARSE_MATRIX_DEFAULT_STACK_ENTRIES   1000

Definition at line 36 of file GMatrixSparse.hpp.

#define G_SPARSE_MATRIX_DEFAULT_STACK_SIZE   512

Definition at line 37 of file GMatrixSparse.hpp.

Referenced by GMatrixSparse::stack_init().

Function Documentation

GMatrixSparse operator* ( const GMatrixSparse matrix,
const double &  scalar 
)
inline

Multiply matrix by scalar.

Parameters
[in]matrixMatrix.
[in]scalarScalar.
Returns
Matrix divided by scalar.

Definition at line 480 of file GMatrixSparse.hpp.

GMatrixSparse operator* ( const double &  scalar,
const GMatrixSparse matrix 
)
inline

Multiply matrix by scalar.

Parameters
[in]scalarScalar.
[in]matrixMatrix.
Returns
Matrix divided by scalar.

Definition at line 497 of file GMatrixSparse.hpp.

GMatrixSparse operator/ ( const GMatrixSparse matrix,
const double &  scalar 
)
inline

Divide matrix by scalar.

Parameters
[in]matrixMatrix.
[in]scalarScalar.
Returns
Matrix divided by scalar.

Definition at line 514 of file GMatrixSparse.hpp.