@@ -10,21 +10,21 @@ def max(x: Array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keep
10
10
return Array ._new (np .max (x ._array , axis = axis , keepdims = keepdims ))
11
11
12
12
def mean (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , keepdims : bool = False ) -> Array :
13
- return Array ._new (np .asarray ( np . mean (x ._array , axis = axis , keepdims = keepdims ) ))
13
+ return Array ._new (np .mean (x ._array , axis = axis , keepdims = keepdims ))
14
14
15
15
def min (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , keepdims : bool = False ) -> Array :
16
16
return Array ._new (np .min (x ._array , axis = axis , keepdims = keepdims ))
17
17
18
18
def prod (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , keepdims : bool = False ) -> Array :
19
- return Array ._new (np .asarray ( np . prod (x ._array , axis = axis , keepdims = keepdims ) ))
19
+ return Array ._new (np .prod (x ._array , axis = axis , keepdims = keepdims ))
20
20
21
21
def std (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , correction : Union [int , float ] = 0.0 , keepdims : bool = False ) -> Array :
22
22
# Note: the keyword argument correction is different here
23
- return Array ._new (np .asarray ( np . std (x ._array , axis = axis , ddof = correction , keepdims = keepdims ) ))
23
+ return Array ._new (np .std (x ._array , axis = axis , ddof = correction , keepdims = keepdims ))
24
24
25
25
def sum (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , keepdims : bool = False ) -> Array :
26
- return Array ._new (np .asarray ( np . sum (x ._array , axis = axis , keepdims = keepdims ) ))
26
+ return Array ._new (np .sum (x ._array , axis = axis , keepdims = keepdims ))
27
27
28
28
def var (x : Array , / , * , axis : Optional [Union [int , Tuple [int , ...]]] = None , correction : Union [int , float ] = 0.0 , keepdims : bool = False ) -> Array :
29
29
# Note: the keyword argument correction is different here
30
- return Array ._new (np .asarray ( np . var (x ._array , axis = axis , ddof = correction , keepdims = keepdims ) ))
30
+ return Array ._new (np .var (x ._array , axis = axis , ddof = correction , keepdims = keepdims ))
0 commit comments