Commit 63bab1b2 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add _latex representation for InterpolatorAccess

parent 1177d9a3
......@@ -172,6 +172,11 @@ class InterpolatorAccess(TypedSymbol):
def __repr__(self):
return self.__str__()
def _latex(self, printer, *_):
n = self.field.latex_name if self.field.latex_name else
foo = ", ".join(str(printer.doprint(o)) for o in self.offsets)
return f'{n}_{{interpolator}}\\left({foo}\\right)'
def ndim(self):
return len(self.offsets)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment