Skip to content
Snippets Groups Projects
Commit 9542cce7 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Add folds in arraycontext.impl.pytato

parent 4305d758
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ if TYPE_CHECKING:
import pytato
# {{{ _BasePytatoArrayContext
class _BasePytatoArrayContext(ArrayContext, abc.ABC):
"""
An abstract :class:`ArrayContext` that uses :mod:`pytato` data types to
......@@ -122,6 +124,10 @@ class _BasePytatoArrayContext(ArrayContext, abc.ABC):
def permits_advanced_indexing(self):
return True
# }}}
# {{{ PytatoPyOpenCLArrayContext
class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext):
"""
......@@ -362,6 +368,10 @@ class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext):
for name, arg in zip(arg_names, args)
])
# }}}
# {{{ PytatoJAXArrayContext
class PytatoJAXArrayContext(_BasePytatoArrayContext):
"""
......@@ -498,3 +508,8 @@ class PytatoJAXArrayContext(_BasePytatoArrayContext):
preprocess_arg(name, arg)
for name, arg in zip(arg_names, args)
])
# }}}
# vim: foldmethod=marker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment