7 #ifndef DENSE_CHOLESKY_H 8 #define DENSE_CHOLESKY_H 11 #include <Eigen/Cholesky> 13 #include "../Util/CompInfo.h" 25 template <
typename Scalar,
int Uplo = Eigen::Lower>
53 if (mat.rows() != mat.cols())
54 throw std::invalid_argument(
"DenseCholesky: matrix must be square");
86 MapConstVec
x(x_in, m_n);
88 y.noalias() = m_decomp.
matrixL().solve(x);
100 MapConstVec
x(x_in, m_n);
101 MapVec
y(y_out, m_n);
102 y.noalias() = m_decomp.
matrixU().solve(x);
108 #endif // DENSE_CHOLESKY_H
void lower_triangular_solve(const Scalar *x_in, Scalar *y_out) const
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
A matrix or vector expression mapping an existing array of data.
void upper_triangular_solve(const Scalar *x_in, Scalar *y_out) const
Computation was successful.
Eigen::Map< const Matrix > MapConstMat
Eigen::Map< Vector > MapVec
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
ComputationInfo info() const
Reports whether previous computation was successful.
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
DenseCholesky(ConstGenericMatrix &mat)
Traits::MatrixL matrixL() const
Eigen::LLT< Matrix, Uplo > m_decomp
Traits::MatrixU matrixU() const
LLT & compute(const EigenBase< InputType > &matrix)
const Eigen::Ref< const Matrix > ConstGenericMatrix
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Eigen::Map< const Vector > MapConstVec