5#ifndef EQUATION_2MATRIX_H
6#define EQUATION_2MATRIX_H
20 template <
typename _Type,
typename _Xtype =
double >
55 problem =
"The equation::matrix1 method has not been implemented.\n";
56 problem +=
"You have to implement this method to define the equation.\n";
68 template <
typename _Type,
typename _Xtype>
70 return MATRIX1_AT_LAST_STATE;
A templated class for equations that can be inherited from to allow instantiation of PDE_IBVP objects...
A matrix class that constructs a DENSE matrix as a row major std::vector of DenseVectors.
An DenseVector class – a dense vector object.
An equation object base class used in the IBVP classes (and others).
An equation object base class used in the PDE_double_IBVP class.
const DenseMatrix< _Type > & matrix1() const
Return a handle to the matrix member data.
virtual ~Equation_2matrix()
An empty destructor, virtual since we have virtual methods.
virtual void matrix1(const DenseVector< _Type > &state, DenseMatrix< _Type > &m) const
Define the matrix in terms of the current state vector.
virtual void get_jacobian_of_matrix1_mult_vector(const DenseVector< _Type > &state, const DenseVector< _Type > &vec, DenseMatrix< _Type > &h) const
Return the product of the Jacobian-of-the-matrix and a vector 'vec' when the equation has a given 'st...
void update(const DenseVector< _Type > &state)
Update the Equation object for the current set of state variables.
A generic runtime exception.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...