#include "gstlearn_export.hpp"
#include "LinearOp/ALinearOp.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 MatrixSparse * | createFromAnyMatrix (const AMatrix *mat, int opt_eigen=-1) |
GSTLEARN_EXPORT void | setUpdateNonZeroValue (int status=2) |
GSTLEARN_EXPORT int | getUpdateNonZeroValue () |
GSTLEARN_EXPORT MatrixSparse * | prodNormMatMat (const MatrixSparse *a, const MatrixSparse *m, bool transpose=false) |
GSTLEARN_EXPORT MatrixSparse * | prodNormMat (const MatrixSparse *a, const VectorDouble &vec=VectorDouble(), bool transpose=false) |
GSTLEARN_EXPORT MatrixSparse * | prodNormDiagVec (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) |
GSTLEARN_EXPORT Eigen::SparseMatrix<double> AtMA | ( | const Eigen::SparseMatrix< double > & | A, |
const Eigen::SparseMatrix< double > & | M | ||
) |
GSTLEARN_EXPORT MatrixSparse* createFromAnyMatrix | ( | const AMatrix * | mat, |
int | opt_eigen = -1 |
||
) |
Transform any matrix into a Sparse format
GSTLEARN_EXPORT int getUpdateNonZeroValue | ( | ) |
GSTLEARN_EXPORT bool isGlobalFlagEigen | ( | ) |
GSTLEARN_EXPORT MatrixSparse* prodNormDiagVec | ( | const MatrixSparse * | a, |
const VectorDouble & | vec, | ||
int | oper_choice = 1 |
||
) |
Product 'Diag(vec)' %*% 'A' %*% 'Diag(vec)'
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'
GSTLEARN_EXPORT MatrixSparse* prodNormMatMat | ( | const MatrixSparse * | a, |
const MatrixSparse * | m, | ||
bool | transpose = false |
||
) |
Product 't(A)' %*% 'M' %*% 'A' or 'A' %*% 'M' %*% 't(A)'
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.
flagEigen | True if EIGEN library must be used; False otherwise (cs is used) |
GSTLEARN_EXPORT void setUpdateNonZeroValue | ( | int | status = 2 | ) |