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

Public Member Functions

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

Base class for MathML operator elements.

Definition at line 5403 of file pycml.py.

Member Function Documentation

◆ wrong_number_of_operands()

def CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands (   self,
  found,
  wanted 
)
Raise an EvaluationError due to wrong operand count.

found is the number of operands found; wanted is a list of suitable
numbers of operands.

Definition at line 5405 of file pycml.py.

5405 def wrong_number_of_operands(self, found, wanted):
5406 """Raise an EvaluationError due to wrong operand count.
5407
5408 found is the number of operands found; wanted is a list of suitable
5409 numbers of operands.
5410 """
5411 raise EvaluationError(u''.join([
5412 "Wrong number of operands for <", self.localName, "> ",
5413 "(found ", str(found), "; wanted", ' or '.join(map(str, wanted)), ")"]))
5414
5415

Referenced by CellMLToNektar.pycml.mathml_eq._get_binding_time(), CellMLToNektar.pycml.mathml_divide._reduce(), CellMLToNektar.pycml.mathml_eq._reduce(), CellMLToNektar.pycml.mathml_minus.evaluate(), CellMLToNektar.pycml.mathml_divide.evaluate(), CellMLToNektar.pycml.mathml_exp.evaluate(), CellMLToNektar.pycml.mathml_ln.evaluate(), CellMLToNektar.pycml.mathml_log.evaluate(), CellMLToNektar.pycml.mathml_abs.evaluate(), CellMLToNektar.pycml.mathml_power.evaluate(), CellMLToNektar.pycml.mathml_root.evaluate(), CellMLToNektar.pycml.mathml_leq.evaluate(), CellMLToNektar.pycml.mathml_lt.evaluate(), CellMLToNektar.pycml.mathml_geq.evaluate(), CellMLToNektar.pycml.mathml_gt.evaluate(), CellMLToNektar.pycml.mathml_neq.evaluate(), CellMLToNektar.pycml.mathml_eq.evaluate(), CellMLToNektar.pycml.mathml_rem.evaluate(), CellMLToNektar.pycml.mathml_sin.evaluate(), CellMLToNektar.pycml.mathml_cos.evaluate(), CellMLToNektar.pycml.mathml_tan.evaluate(), CellMLToNektar.pycml.mathml_arcsin.evaluate(), CellMLToNektar.pycml.mathml_arccos.evaluate(), and CellMLToNektar.pycml.mathml_arctan.evaluate().