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
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
void upper_triangular_solve(const Scalar *x_in, Scalar *y_out) const
A matrix or vector expression mapping an existing array of data.
Traits::MatrixU matrixU() const
Computation was successful.
ComputationInfo info() const
Reports whether previous 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.
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
DenseCholesky(ConstGenericMatrix &mat)
void lower_triangular_solve(const Scalar *x_in, Scalar *y_out) const
Eigen::LLT< Matrix, Uplo > m_decomp
LLT & compute(const EigenBase< InputType > &matrix)
const Eigen::Ref< const Matrix > ConstGenericMatrix
Traits::MatrixL matrixL() const
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