Go to the documentation of this file.
7 #ifndef SPARSE_GEN_REAL_SHIFT_SOLVE_H
8 #define SPARSE_GEN_REAL_SHIFT_SOLVE_H
11 #include <Eigen/SparseCore>
12 #include <Eigen/SparseLU>
24 template <
typename Scalar,
int Flags = 0,
typename StorageIndex =
int>
50 if (
mat.rows() !=
mat.cols())
51 throw std::invalid_argument(
"SparseGenRealShiftSolve: matrix must be square");
73 throw std::invalid_argument(
"SparseGenRealShiftSolve: factorization failed with the given shift");
93 #endif // SPARSE_GEN_REAL_SHIFT_SOLVE_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
Eigen::Map< const Vector > MapConstVec
const typedef Eigen::Ref< const SparseMatrix > ConstGenericSparseMatrix
void perform_op(const Scalar *x_in, Scalar *y_out) const
static const double sigma
SparseGenRealShiftSolve(ConstGenericSparseMatrix &mat)
A matrix or vector expression mapping an existing array of data.
void set_shift(Scalar sigma)
A matrix or vector expression mapping an existing expression.
Eigen::SparseMatrix< Scalar, Flags, StorageIndex > SparseMatrix
Eigen::Map< Vector > MapVec
Eigen::SparseLU< SparseMatrix > m_solver
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
ConstGenericSparseMatrix m_mat
Sparse supernodal LU factorization for general matrices.
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:30