Go to the documentation of this file.
7 #ifndef SPARSE_SYM_SHIFT_SOLVE_H
8 #define SPARSE_SYM_SHIFT_SOLVE_H
11 #include <Eigen/SparseCore>
12 #include <Eigen/SparseLU>
24 template <
typename Scalar,
int Uplo = Eigen::Lower,
int Flags = 0,
typename StorageIndex =
int>
50 if (
mat.rows() !=
mat.cols())
51 throw std::invalid_argument(
"SparseSymShiftSolve: matrix must be square");
75 throw std::invalid_argument(
"SparseSymShiftSolve: factorization failed with the given shift");
95 #endif // SPARSE_SYM_SHIFT_SOLVE_H
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
void set_shift(Scalar sigma)
A versatible sparse matrix representation.
void perform_op(const Scalar *x_in, Scalar *y_out) const
Eigen::Map< Vector > MapVec
Eigen::Map< const Vector > MapConstVec
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::SparseLU< SparseMatrix > m_solver
Eigen::SparseMatrix< Scalar, Flags, StorageIndex > SparseMatrix
static const double sigma
SparseSymShiftSolve(ConstGenericSparseMatrix &mat)
A matrix or vector expression mapping an existing array of data.
const typedef Eigen::Ref< const SparseMatrix > ConstGenericSparseMatrix
A matrix or vector expression mapping an existing expression.
Sparse supernodal LU factorization for general matrices.
ConstGenericSparseMatrix m_mat
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:51