@@ -524,33 +524,6 @@ def nonzero(x: Array, /, xp: Namespace, **kwargs: object) -> tuple[Array, ...]:
524524 return xp .nonzero (x , ** kwargs )
525525
526526
527- # ceil, floor, and trunc return integers for integer inputs
528-
529-
530- def ceil (x : Array , / , xp : Namespace , ** kwargs : object ) -> Array :
531- result = xp .ceil (x , ** kwargs )
532- if result .dtype != x .dtype :
533- # numpy < 2: ceil(int array) is float
534- result = xp .asarray (result , dtype = x .dtype )
535- return result
536-
537-
538- def floor (x : Array , / , xp : Namespace , ** kwargs : object ) -> Array :
539- result = xp .floor (x , ** kwargs )
540- if result .dtype != x .dtype :
541- # numpy < 2: floor(int array) is float
542- result = xp .asarray (result , dtype = x .dtype )
543- return result
544-
545-
546- def trunc (x : Array , / , xp : Namespace , ** kwargs : object ) -> Array :
547- result = xp .trunc (x , ** kwargs )
548- if result .dtype != x .dtype :
549- # numpy < 2: trunc(int array) is float
550- result = xp .asarray (result , dtype = x .dtype )
551- return result
552-
553-
554527# linear algebra functions
555528
556529
@@ -713,9 +686,6 @@ def iinfo(type_: DType | Array, /, xp: Namespace) -> Any:
713686 "argsort" ,
714687 "sort" ,
715688 "nonzero" ,
716- "ceil" ,
717- "floor" ,
718- "trunc" ,
719689 "matmul" ,
720690 "matrix_transpose" ,
721691 "tensordot" ,
0 commit comments