KADATH
|
The operator definition. More...
#include <ope_eq.hpp>
Public Member Functions | |
Ope_def (const System_of_eqs *syst, Ope_eq *so, int val, char *name, Array< int > *ttype) | |
Constructor. More... | |
Term_eq | action () const override |
Computes the action of the current Ope_eq using its various parts. More... | |
Term_eq * | get_res () |
Returns the result. More... | |
void | compute_res () |
Forces the computation of the result (when things have changed). More... | |
int | get_dom () const |
Protected Attributes | |
Term_eq * | res |
Result of the current definition. More... | |
const System_of_eqs * | syst |
The associated System_of_eqs . More... | |
int | dom |
Index of the Domain where the operator is defined. More... | |
int | n_ope |
Number of terms involved (2 for + for instance, only one for sqrt...) More... | |
MMPtr_array< Ope_eq > | parts |
Pointers of the various parts of the current operator. More... | |
The operator definition.
It corresponds to expressions defined by the user in theSystem_of_eqs
. Indices may have to be renamed and/or summed, depending on their name.
Definition at line 480 of file ope_eq.hpp.
Kadath::Ope_def::Ope_def | ( | const System_of_eqs * | syst, |
Ope_eq * | so, | ||
int | val, | ||
char * | name, | ||
Array< int > * | ttype | ||
) |
Constructor.
syst | : the associated System_of_eqs . |
so | : target |
val | : valence of the result (can be different from so, due to summations) |
name | : names of the indices |
ttype | : type of the various indices (COV or CON). |
Definition at line 22 of file ope_def.cpp.
References action(), Kadath::Term_eq::der_t, Kadath::Tensor::get_valence(), Kadath::Ope_eq::parts, res, Kadath::Term_eq::set_der_zero(), Kadath::Tensor::set_index_type(), Kadath::Tensor::set_name_affected(), Kadath::Tensor::set_name_ind(), and Kadath::Term_eq::val_t.
|
overridevirtual |
Computes the action of the current Ope_eq
using its various parts.
Term_eq
containing the result. Implements Kadath::Ope_eq.
Definition at line 60 of file ope_def.cpp.
void Kadath::Ope_def::compute_res | ( | ) |
Forces the computation of the result (when things have changed).
Definition at line 75 of file ope_def.cpp.
References Kadath::Ope_eq::parts, and res.
|
inlineinherited |
Domain
. Definition at line 53 of file ope_eq.hpp.
References Kadath::Ope_eq::dom.
Term_eq * Kadath::Ope_def::get_res | ( | ) |
|
protectedinherited |
Index of the Domain
where the operator is defined.
Definition at line 36 of file ope_eq.hpp.
|
protectedinherited |
Number of terms involved (2 for + for instance, only one for sqrt...)
Definition at line 37 of file ope_eq.hpp.
|
protectedinherited |
Pointers of the various parts of the current operator.
Definition at line 38 of file ope_eq.hpp.
|
protected |
Result of the current definition.
Definition at line 482 of file ope_eq.hpp.
|
protectedinherited |
The associated System_of_eqs
.
Definition at line 35 of file ope_eq.hpp.