Go to the documentation of this file.
7 #ifndef SPECTRA_SPARSE_GEN_REAL_SHIFT_SOLVE_H
8 #define SPECTRA_SPARSE_GEN_REAL_SHIFT_SOLVE_H
11 #include <Eigen/SparseCore>
12 #include <Eigen/SparseLU>
30 template <
typename Scalar_,
int Flags = Eigen::ColMajor,
typename StorageIndex =
int>
59 template <
typename Derived>
65 "SparseGenRealShiftSolve: the \"Flags\" template parameter does not match the input matrix (Eigen::ColMajor/Eigen::RowMajor)");
67 if (
mat.rows() !=
mat.cols())
68 throw std::invalid_argument(
"SparseGenRealShiftSolve: matrix must be square");
90 throw std::invalid_argument(
"SparseGenRealShiftSolve: factorization failed with the given shift");
110 #endif // SPECTRA_SPARSE_GEN_REAL_SHIFT_SOLVE_H
A versatible sparse matrix representation.
Eigen::SparseLU< SparseMatrix > m_solver
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
void perform_op(const Scalar *x_in, Scalar *y_out) const
static const double sigma
SparseGenRealShiftSolve(const Eigen::SparseMatrixBase< Derived > &mat)
ConstGenericSparseMatrix m_mat
A matrix or vector expression mapping an existing array of data.
Base class of any sparse matrices or sparse expressions.
Sparse supernodal LU factorization for general matrices.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
void set_shift(const Scalar &sigma)
gtsam
Author(s):
autogenerated on Thu Apr 10 2025 03:03:35