31 #ifndef CHOLESKY_IMPL_H_
32 #define CHOLESKY_IMPL_H_
46 namespace implementation
52 template <enum Backend,
class Matrix>
57 typedef typename Matrix::Scalar
T;
67 static ReturnType
compute(Matrix A,
bool lower);
74 template <
class Matrix>
78 typedef typename Matrix::Scalar
T;
100 Eigen::LLT<MatrixXt> llt(map_A);
104 map_cho= llt.matrixU();
106 map_cho= llt.matrixL();
109 REQUIRE(llt.info()!=Eigen::NumericalIssue,
"Matrix is not Hermitian positive definite!\n");
121 #endif //CHOLESKY_IMPL_H_
Generic class which is specialized for different backends to compute the cholesky decomposition of a ...
static ReturnType compute(Matrix A, bool lower)
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > MatrixXt
static ReturnType compute(SGMatrix< T > A, bool lower)
all of classes and functions are contained in the shogun namespace
void set_const(T const_elem)