28 void reset()
override;
29 const string type()
const override {
return "banded-direct"; }
30 void setValue(
size_t row,
size_t col,
double value)
override;
38 double& value(
size_t i,
size_t j) {
42 double value(
size_t i,
size_t j)
const {
46 void solve(
const double*
const b,
double*
const x) {
50 void solve(
const size_t stateSize,
double* b,
double* x)
override {
54 int info()
const override {
Declarations for the class BandMatrix which is a child class of GeneralMatrix for banded matrices han...
Declarations for class SystemJacobian.
A class for banded matrices, involving matrix inversion processes.
void solve(const double *const b, double *const x)
Solve the matrix problem Ax = b.
int info() const
LAPACK "info" flag after last factor/solve operation.
void factor() override
Perform an LU decomposition, the LAPACK routine DGBTRF is used.
double & value(size_t i, size_t j)
Return a changeable reference to element (i,j).
Class MultiJac evaluates the Jacobian of a system of equations defined by a residual function supplie...
BandMatrix m_mat
Underlying matrix storage.
void setBandwidth(size_t bw) override
Used to provide system bandwidth for implementations that use banded matrix storage.
void setValue(size_t row, size_t col, double value) override
Set a value at the specified row and column of the jacobian triplet vector.
void factorize() override
Factorize the system matrix.
void solve(const size_t stateSize, double *b, double *x) override
Solve a linear system using the system matrix M
vector< double > m_ssdiag
Diagonal of the steady-state Jacobian.
const string type() const override
Derived type, corresponding to names registered with SystemJacobianFactory.
void reset() override
Reset parameters as needed.
void updateTransient(double rdt, integer *mask) override
Update the diagonal terms in the Jacobian by using the transient mask .
int info() const override
Get latest status of linear solver.
void initialize(size_t nVars) override
Called during setup for any processes that need to be completed prior to setup functions used in sund...
Abstract base class representing Jacobian matrices and preconditioners used in nonlinear solvers.
Namespace for the Cantera kernel.