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

Add a feature flag for nonscalar broadcasting

parent e08969f6
No related branches found
No related tags found
No related merge requests found
Pipeline #203730 passed
...@@ -355,6 +355,11 @@ class ArrayContext(ABC): ...@@ -355,6 +355,11 @@ class ArrayContext(ABC):
def permits_inplace_modification(self): def permits_inplace_modification(self):
pass pass
# undocumented for now
@abstractproperty
def supports_nonscalar_broadcasting(self):
pass
# }}} # }}}
# vim: foldmethod=marker # vim: foldmethod=marker
...@@ -278,6 +278,10 @@ class PyOpenCLArrayContext(ArrayContext): ...@@ -278,6 +278,10 @@ class PyOpenCLArrayContext(ArrayContext):
def permits_inplace_modification(self): def permits_inplace_modification(self):
return True return True
@property
def supports_nonscalar_broadcasting(self):
return False
# }}} # }}}
# vim: foldmethod=marker # vim: foldmethod=marker
...@@ -227,3 +227,7 @@ class PytatoPyOpenCLArrayContext(ArrayContext): ...@@ -227,3 +227,7 @@ class PytatoPyOpenCLArrayContext(ArrayContext):
@property @property
def permits_inplace_modification(self): def permits_inplace_modification(self):
return False return False
@property
def supports_nonscalar_broadcasting(self):
return True
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