loki.expression.mixins module
- loki_make_stringifier(self, 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 StrCompareMixin
Bases:
objectMixin to enable comparing expressions to strings.
The purpose of the string comparison override is to reliably and flexibly identify expression symbols from equivalent strings.
- 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.