Nektar++
Public Member Functions | List of all members
CellMLToNektar.pycml.mathml_gt Class Reference
Inheritance diagram for CellMLToNektar.pycml.mathml_gt:
[legend]

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)
 

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)
 

Detailed Description

Class representing the MathML <gt> operator.

Definition at line 5919 of file pycml.py.

Member Function Documentation

◆ evaluate()

def CellMLToNektar.pycml.mathml_gt.evaluate (   self)
Return True iff the value of the first operand is
greater than the value of the second.

Definition at line 5921 of file pycml.py.

5921 def evaluate(self):
5922 """
5923 Return True iff the value of the first operand is
5924 greater than the value of the second.
5925 """
5926 app = self.xml_parent
5927 ops = list(app.operands())
5928 if len(ops) != 2:
5929 self.wrong_number_of_operands(len(ops), [2])
5930 return self.eval(ops[0]) > self.eval(ops[1])
5931

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().