Go to the documentation of this file.
7 #ifndef SPARSE_REGULAR_INVERSE_H
8 #define SPARSE_REGULAR_INVERSE_H
11 #include <Eigen/SparseCore>
12 #include <Eigen/IterativeLinearSolvers>
28 template <
typename Scalar,
int Uplo = Eigen::Lower,
int Flags = 0,
typename StorageIndex =
int>
54 if (
mat.rows() !=
mat.cols())
55 throw std::invalid_argument(
"SparseRegularInverse: matrix must be square");
80 y.noalias() =
m_cg.solve(
x);
94 y.noalias() =
m_mat.template selfadjointView<Uplo>() *
x;
100 #endif // SPARSE_REGULAR_INVERSE_H
A versatible sparse matrix representation.
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
SparseRegularInverse(ConstGenericSparseMatrix &mat)
A conjugate gradient solver for sparse (or dense) self-adjoint problems.
ConstGenericSparseMatrix m_mat
void 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.
Eigen::SparseMatrix< Scalar, Flags, StorageIndex > SparseMatrix
A matrix or vector expression mapping an existing expression.
Eigen::Map< Vector > MapVec
Eigen::ConjugateGradient< SparseMatrix > m_cg
const typedef Eigen::Ref< const SparseMatrix > ConstGenericSparseMatrix
void mat_prod(const Scalar *x_in, Scalar *y_out) const
Eigen::Map< const Vector > MapConstVec
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:45