@@ -524,33 +524,6 @@ def nonzero(x: Array, /, xp: Namespace, **kwargs: object) -> tuple[Array, ...]:
524
524
return xp .nonzero (x , ** kwargs )
525
525
526
526
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
-
554
527
# linear algebra functions
555
528
556
529
@@ -713,9 +686,6 @@ def iinfo(type_: DType | Array, /, xp: Namespace) -> Any:
713
686
"argsort" ,
714
687
"sort" ,
715
688
"nonzero" ,
716
- "ceil" ,
717
- "floor" ,
718
- "trunc" ,
719
689
"matmul" ,
720
690
"matrix_transpose" ,
721
691
"tensordot" ,
0 commit comments