|
|
FieldState | smith::createFieldState (gretl::DataStore &dataStore, const smith::FEFieldPtr &s) |
| | initialize on the gretl::DataStore a FieldState with values from s
|
| |
|
template<typename function_space > |
| FieldState | smith::createFieldState (gretl::DataStore &dataStore, function_space space, const std::string &name, const std::string &mesh_tag) |
| | initialize on the gretl::DataStore a FieldState from a FiniteElementState of given space, name and mesh.
|
| |
|
ReactionState | smith::createReactionState (gretl::DataStore &dataStore, const smith::FEDualPtr &s) |
| | initialize on the gretl::DataStore a ReactionState with values from s
|
| |
|
template<typename function_space > |
| ReactionState | smith::createReactionState (gretl::DataStore &dataStore, function_space space, const std::string &name, const std::string &mesh_tag) |
| | initialize on the gretl::DataStore a ReactionState from a FiniteElementDual of given space, name and mesh.
|
| |
|
FieldState | smith::square (const FieldState &state) |
| | gretl-function to square (x^2) every component of the Field
|
| |
|
gretl::State< double > | smith::innerProduct (const FieldState &a, const FieldState &b) |
| | gretl-function to compute the inner product (vector l2-norm) of a and b
|
| |
|
gretl::State< double > | smith::innerProduct (const ReactionState &a, const ReactionState &b) |
| | gretl-function to compute the inner product (vector l2-norm) of a and b
|
| |
|
FieldState | smith::axpby (double a, const FieldState &x, double b, const FieldState &y) |
| | gretl-function to compute a*x + b*y
|
| |
|
FieldState | smith::zeroCopy (const FieldState &x) |
| | gretl-function to make a deep-copy of a FieldState and initialize it to 0.
|
| |
|
FieldState | smith::weighted_average (const FieldState &a, const FieldState &b, double weight) |
| | gretl-function to compute the weighted average a * weight + b * (1-weight)
|
| |
|
FieldState | smith::axpby (const gretl::State< double > &a, const FieldState &x, const gretl::State< double > &b, const FieldState &y) |
| | axpby using State<double> and FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (double a, const FieldState &b) |
| | multiply scalar by a FieldState to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (const FieldState &b, double a) |
| | multiply scalar by a FieldState to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (double a, const FieldStateWeightedSum &b) |
| | multiply scalar by a FieldStateWeightedSum to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (const FieldStateWeightedSum &b, double a) |
| | multiply scalar by a FieldStateWeightedSum to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (const gretl::State< double > &a, const FieldState &b) |
| | multiply scalar by a FieldState to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator* (const FieldState &b, const gretl::State< double > &a) |
| | multiply scalar by a FieldState to get a temporary FieldStateWeightedSum which can cast back to a FieldState
|
| |
|
FieldStateWeightedSum | smith::operator+ (const FieldState &x, const FieldState &y) |
| | add two FieldState
|
| |
|
FieldStateWeightedSum | smith::operator- (const FieldState &x, const FieldState &y) |
| | subtract two FieldState
|
| |
|
FieldStateWeightedSum | smith::operator+ (const FieldStateWeightedSum &ax, const FieldStateWeightedSum &by) |
| | add two FieldStateWeightedSum
|
| |
|
FieldStateWeightedSum | smith::operator- (const FieldStateWeightedSum &ax, const FieldStateWeightedSum &by) |
| | subtract two FieldStateWeightedSum
|
| |
|
FieldStateWeightedSum | smith::operator+ (const FieldStateWeightedSum &ax, const FieldState &y) |
| | add FieldStateWeightedSum and FieldState
|
| |
|
FieldStateWeightedSum | smith::operator+ (const FieldState &y, const FieldStateWeightedSum &ax) |
| | add FieldStateWeightedSum and FieldState
|
| |
|
FieldStateWeightedSum | smith::operator- (const FieldStateWeightedSum &ax, const FieldState &by) |
| | subtract FieldState from FieldStateWeightedSum
|
| |
|
FieldStateWeightedSum | smith::operator- (const FieldState &ax, const FieldStateWeightedSum &by) |
| | subtract FieldStateWeightedSum from FieldState
|
| |
|
mfem::ParFiniteElementSpace & | smith::space (FieldState field) |
| | Get the space from the primal field of a field states.
|
| |
|
std::vector< const mfem::ParFiniteElementSpace * > | smith::spaces (const std::vector< FieldState > &states, const std::vector< FieldState > ¶ms={}) |
| | Get the spaces from the primal fields of a vector of field states.
|
| |
|
std::vector< FiniteElementState * > | smith::getFieldPointers (std::vector< FieldState > &states, std::vector< FieldState > params={}) |
| | Get a vector of FieldPtr or DualFieldPtr from a vector of FieldState.
|
| |
|
std::vector< const FiniteElementState * > | smith::getConstFieldPointers (const std::vector< FieldState > &states, const std::vector< FieldState > ¶ms={}) |
| | Get a vector of ConstFieldPtr or ConstDualFieldPtr from a vector of FieldState.
|
| |