11 template <
typename _Type,
typename _Xtype>
20 template <
typename _Type,
typename _Xtype>
25 template <
typename _Type,
typename _Xtype>
32 this -> T_UPDATER.start();
35 matrix1(state, MATRIX1_AT_LAST_STATE);
37 this -> T_UPDATER.stop();
41 template <
typename _Type,
typename _Xtype>
49 std::vector< DenseMatrix<_Type> > jacmatrix;
51 for(std::size_t i = 0; i <
this -> ORDER_OF_SYSTEM; ++i) {
52 copy_of_state[ i ] +=
this -> DELTA;
53 matrix1(copy_of_state, copy_of_matrix);
54 copy_of_state[ i ] -=
this -> DELTA;
55 copy_of_matrix.sub(MATRIX1_AT_LAST_STATE);
56 copy_of_matrix.scale(1. /
this -> DELTA);
58 jacmatrix.push_back(copy_of_matrix);
61 for(
unsigned i = 0; i <
this -> ORDER_OF_SYSTEM; ++i) {
62 for(
unsigned j = 0; j <
this -> ORDER_OF_SYSTEM; ++j) {
69 template class Equation_2matrix<double>
71 template class Equation_2matrix<std::complex<double> >
73 template class Equation_2matrix<std::complex<double>, std::complex<double> >
A templated class for equations that can be inherited from to allow instantiation of PDE_double_IBVP ...
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).
void update(const DenseVector< _Type > &state)
Update the Equation object for the current set of state variables.
Equation_2matrix(const unsigned &order)
Constructor for equation class.
virtual ~Equation_2matrix()
An empty destructor, virtual since we have virtual methods.
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 base class to be inherited by objects that define residuals.
_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...