loki.expression.operations
Sub-classes of Pymbolic’s native operations that allow us to express niche things like mathematically irrelevant parenthesis that nevertheless change code results.
Classes
  | 
Specialised version of   | 
  | 
Specialised version of   | 
  | 
Specialised version of   | 
  | 
Specialised version of   | 
  | 
Implements string concatenation in a way similar to   | 
- class ParenthesisedAdd(children)
 Bases:
SumSpecialised version of
Sumthat always pretty-prints and code-generates with explicit parentheses.- mapper_method = 'map_parenthesised_add'
 
- make_stringifier(originating_stringifier=None)
 Return a
LokiStringifyMapperinstance that can be used to generate a human-readable representation ofself.This is used as common abstraction for the
make_stringifier()method in Pymbolic expression nodes.
- class ParenthesisedMul(children)
 Bases:
ProductSpecialised version of
Productthat always pretty-prints and code-generates with explicit parentheses.- mapper_method = 'map_parenthesised_mul'
 
- make_stringifier(originating_stringifier=None)
 Return a
LokiStringifyMapperinstance that can be used to generate a human-readable representation ofself.This is used as common abstraction for the
make_stringifier()method in Pymbolic expression nodes.
- class ParenthesisedDiv(numerator, denominator=1)
 Bases:
QuotientSpecialised version of
Quotientthat always pretty-prints and code-generates with explicit parentheses.- mapper_method = 'map_parenthesised_div'
 
- make_stringifier(originating_stringifier=None)
 Return a
LokiStringifyMapperinstance that can be used to generate a human-readable representation ofself.This is used as common abstraction for the
make_stringifier()method in Pymbolic expression nodes.
- class ParenthesisedPow(base, exponent)
 Bases:
PowerSpecialised version of
Powerthat always pretty-prints and code-generates with explicit parentheses.- mapper_method = 'map_parenthesised_pow'
 
- make_stringifier(originating_stringifier=None)
 Return a
LokiStringifyMapperinstance that can be used to generate a human-readable representation ofself.This is used as common abstraction for the
make_stringifier()method in Pymbolic expression nodes.