@@ -306,34 +306,6 @@ def _get_fake_numpy_namespace(self) -> Any:
306306 def __hash__ (self ) -> int :
307307 raise TypeError (f"unhashable type: '{ type (self ).__name__ } '" )
308308
309- @abstractmethod
310- def empty (self ,
311- shape : Union [int , Tuple [int , ...]],
312- dtype : "np.dtype[Any]" ) -> Array :
313- pass
314-
315- @abstractmethod
316- def zeros (self ,
317- shape : Union [int , Tuple [int , ...]],
318- dtype : "np.dtype[Any]" ) -> Array :
319- pass
320-
321- def empty_like (self , ary : Array ) -> Array :
322- from warnings import warn
323- warn (f"{ type (self ).__name__ } .empty_like is deprecated and will stop "
324- "working in 2023. Prefer actx.np.zeros_like instead." ,
325- DeprecationWarning , stacklevel = 2 )
326-
327- return self .empty (shape = ary .shape , dtype = ary .dtype )
328-
329- def zeros_like (self , ary : Array ) -> Array :
330- from warnings import warn
331- warn (f"{ type (self ).__name__ } .zeros_like is deprecated and will stop "
332- "working in 2023. Use actx.np.zeros_like instead." ,
333- DeprecationWarning , stacklevel = 2 )
334-
335- return self .zeros (shape = ary .shape , dtype = ary .dtype )
336-
337309 @abstractmethod
338310 def from_numpy (self ,
339311 array : NumpyOrContainerOrScalar
0 commit comments