Nektar++
|
Public Member Functions | |
def | evaluate (self) |
Public Member Functions inherited from CellMLToNektar.pycml.mathml_operator | |
def | wrong_number_of_operands (self, found, wanted) |
Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | __init__ (self) |
def | __repr__ (self) |
def | __deepcopy__ (self, memo) |
def | clone_self (self, register=False) |
def | get_original_of_clone (self) |
def | get_component (self) |
def | model (self) |
def | eval (self, elt) |
Public Member Functions inherited from CellMLToNektar.pycml.element_base | |
def | __init__ (self) |
def | __delattr__ (self, key) |
def | __setattr__ (self, key, value) |
def | rootNode (self) |
def | cmeta_id (self) |
def | xml_remove_child_at (self, index=-1) |
def | xml_doc (self) |
def | xml_properties (self) |
Private Member Functions | |
def | _set_in_units (self, units, no_act=False) |
def | _reduce (self) |
Additional Inherited Members | |
Static Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | clone (expr) |
Public Attributes inherited from CellMLToNektar.pycml.element_base | |
xml_attributes | |
Properties inherited from CellMLToNektar.pycml.mathml | |
component = property(get_component) | |
|
private |
Reduce this expression by evaluating its static parts. If the whole expression is static, proceed as normal for an <apply>. Otherwise check if the exponent is static and the expression being exponentiated is a <ci>. If so, and the exponent is equal to 2, 3, or 4, convert the expression to a multiplication.
Definition at line 5728 of file pycml.py.
References CellMLToNektar.pycml.mathml.eval(), CellMLToNektar.processors.ModelModifier.model, CellMLToNektar.pycml.cellml_variable.model(), CellMLToNektar.pycml.mathml.model(), and CellMLToNektar.translators.CellMLTranslator.model.
|
private |
Set the units of the application of this operator. Set the exponent to have units of dimensionless, and the operand to have an arbitrary member of its possible units set. Where these mean the <apply> doesn't have the given units, wrap it in suitable units conversion mathematics.
Definition at line 5694 of file pycml.py.
References CellMLToNektar.pycml.mathml_units_mixin._set_element_in_units().
def CellMLToNektar.pycml.mathml_power.evaluate | ( | self | ) |
Return the first operand to the power of the second.
Definition at line 5720 of file pycml.py.
References CellMLToNektar.pycml.mathml.eval(), and CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands().
Referenced by CellMLToNektar.pycml.mathml_constructor._eval_self(), and CellMLToNektar.pycml.mathml_ci._reduce().