6#ifndef EIGENSPARSEDIRECTJACOBIAN_H
7#define EIGENSPARSEDIRECTJACOBIAN_H
15class EigenSparseDirectJacobian :
public EigenSparseJacobian
18 EigenSparseDirectJacobian() =
default;
19 const string type()
const override {
return "eigen-sparse-direct"; }
21 void solve(
const size_t stateSize,
double* rhs_vector,
double* output)
override;
24 Eigen::SparseLU<Eigen::SparseMatrix<double>> m_solver;
void solve(const size_t stateSize, double *rhs_vector, double *output) override
Solve a linear system using the system matrix M
void factorize() override
Factorize the system matrix.
const string type() const override
Derived type, corresponding to names registered with SystemJacobianFactory.
Namespace for the Cantera kernel.