Skip to content
Snippets Groups Projects
Commit 2e3e4966 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni
Browse files

adds relational ops

parent b42d1b29
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,34 @@ class _PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace): ...@@ -114,6 +114,34 @@ class _PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace):
import pytato as pt import pytato as pt
return rec_multimap_array_container(pt.stack, arrays, axis) return rec_multimap_array_container(pt.stack, arrays, axis)
# {{{ relational operators
def equal(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.equal, x, y)
def not_equal(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.not_equal, x, y)
def greater(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.greater, x, y)
def greater_equal(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.greater_equal, x, y)
def less(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.less, x, y)
def less_equal(self, x, y):
import pytato as pt
return rec_multimap_array_container(pt.less_equal, x, y)
# }}}
class PytatoCompiledOperator: class PytatoCompiledOperator:
def __init__(self, actx, pytato_program, input_spec, output_spec): def __init__(self, actx, pytato_program, input_spec, output_spec):
......
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