11 template <
typename _Type,
typename _Xtype>
17 template <
typename _Type,
typename _Xtype>
22 template <
typename _Type,
typename _Xtype>
30 std::vector< DenseMatrix<_Type> > jacmatrix;
32 for(std::size_t i = 0; i <
this -> ORDER_OF_SYSTEM; ++i) {
33 copy_of_state[ i ] +=
this -> DELTA;
34 matrix0(copy_of_state, copy_of_matrix);
35 copy_of_state[ i ] -=
this -> DELTA;
36 copy_of_matrix.sub(MATRIX0_AT_LAST_STATE);
37 copy_of_matrix.scale(1. /
this -> DELTA);
39 jacmatrix.push_back(copy_of_matrix);
42 for(
unsigned i = 0; i <
this -> ORDER_OF_SYSTEM; ++i) {
43 for(
unsigned j = 0; j <
this -> ORDER_OF_SYSTEM; ++j) {
49 template <
typename _Type,
typename _Xtype>
56 this -> T_UPDATER.start();
60 matrix0(state, MATRIX0_AT_LAST_STATE);
62 this -> T_UPDATER.stop();
A templated class for equations that can be inherited from to allow instantiation of PDE_IBVP objects...
A specification of a (double/complex) residual class that not only defines a vector residual of a vec...
A spec for a collection of utility functions.
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).
virtual void get_jacobian_of_matrix0_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.
Equation_1matrix(const unsigned &order)
Constructor for equation class.
virtual ~Equation_1matrix()
An empty destructor, virtual since we have virtual methods.
A base class to be inherited by objects that define residuals.
unsigned ORDER_OF_SYSTEM
The order of the system of equations.
void update(const DenseVector< _Type > &state)
Update the Residual object for the current set of state variables.
_Type dot(const DenseVector< _Type > &X, const DenseVector< _Type > &Y)
Templated dot product.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...