1.4.1
CCC
 
MatrixSparse.hpp File Reference
#include "LinearOp/ALinearOp.hpp"
#include "gstlearn_export.hpp"
#include "Basic/WarningMacro.hpp"
#include "Basic/VectorNumT.hpp"
#include "Matrix/AMatrix.hpp"
#include <Eigen/src/Core/Matrix.h>
#include <Eigen/Sparse>

Classes

class  MatrixSparse
 

Functions

GSTLEARN_EXPORT MatrixSparsecreateFromAnyMatrix (const AMatrix *mat, int opt_eigen=-1)
 
GSTLEARN_EXPORT void setUpdateNonZeroValue (int status=2)
 
GSTLEARN_EXPORT int getUpdateNonZeroValue ()
 
GSTLEARN_EXPORT MatrixSparseprodNormMatMat (const MatrixSparse *a, const MatrixSparse *m, bool transpose=false)
 
GSTLEARN_EXPORT MatrixSparseprodNormMat (const MatrixSparse *a, const VectorDouble &vec=VectorDouble(), bool transpose=false)
 
GSTLEARN_EXPORT MatrixSparseprodNormDiagVec (const MatrixSparse *a, const VectorDouble &vec, int oper_choice=1)
 
GSTLEARN_EXPORT void setGlobalFlagEigen (bool flagEigen)
 Manage global flag for EIGEN. More...
 
GSTLEARN_EXPORT bool isGlobalFlagEigen ()
 
GSTLEARN_EXPORT Eigen::SparseMatrix< double > AtMA (const Eigen::SparseMatrix< double > &A, const Eigen::SparseMatrix< double > &M)
 

Function Documentation

◆ AtMA()

GSTLEARN_EXPORT Eigen::SparseMatrix<double> AtMA ( const Eigen::SparseMatrix< double > &  A,
const Eigen::SparseMatrix< double > &  M 
)

◆ createFromAnyMatrix()

GSTLEARN_EXPORT MatrixSparse* createFromAnyMatrix ( const AMatrix mat,
int  opt_eigen = -1 
)

Transform any matrix into a Sparse format

◆ getUpdateNonZeroValue()

GSTLEARN_EXPORT int getUpdateNonZeroValue ( )

◆ isGlobalFlagEigen()

GSTLEARN_EXPORT bool isGlobalFlagEigen ( )

◆ prodNormDiagVec()

GSTLEARN_EXPORT MatrixSparse* prodNormDiagVec ( const MatrixSparse a,
const VectorDouble vec,
int  oper_choice = 1 
)

Product 'Diag(vec)' %*% 'A' %*% 'Diag(vec)'

◆ prodNormMat()

GSTLEARN_EXPORT MatrixSparse* prodNormMat ( const MatrixSparse a,
const VectorDouble vec = VectorDouble(),
bool  transpose = false 
)

Product 't(A)' %*% ['vec'] %*% 'A' or 'A' %*% ['vec'] %*% 't(A)' stored in 'this'

◆ prodNormMatMat()

GSTLEARN_EXPORT MatrixSparse* prodNormMatMat ( const MatrixSparse a,
const MatrixSparse m,
bool  transpose = false 
)

Product 't(A)' %*% 'M' %*% 'A' or 'A' %*% 'M' %*% 't(A)'

◆ setGlobalFlagEigen()

GSTLEARN_EXPORT void setGlobalFlagEigen ( bool  flagEigen)

Manage global flag for EIGEN.

Modify the parameter for using EIGEN library or not. Warning: this must be performed very early in the script in order to forbid mixing two different styles.

Parameters
flagEigenTrue if EIGEN library must be used; False otherwise (cs is used)

◆ setUpdateNonZeroValue()

GSTLEARN_EXPORT void setUpdateNonZeroValue ( int  status = 2)