Skip to main content

numpy.reductions

Standard library Module View source
variable newaxis
newaxis = None
class SumRedux
class SumRedux[T]
Fields 2
total T
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class NanSumRedux
class NanSumRedux[T]
Fields 2
total T
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class ProdRedux
class ProdRedux[T]
Fields 2
total T
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class NanProdRedux
class NanProdRedux[T]
Fields 2
total T
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class MeanRedux
class MeanRedux[T]
Fields 2
total T
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 9
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
gradual_result
gradual_result(self: Self, curr, count: int)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class NanMeanRedux
class NanMeanRedux[T]
Fields 3
total T
T type
nan_count int
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 6
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class MinRedux
class MinRedux[T]
Fields 2
m Optional[T]
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int) -> T
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class MaxRedux
class MaxRedux[T]
Fields 2
m Optional[T]
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 8
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int) -> T
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class PTPRedux
class PTPRedux[T]
Fields 3
hi Optional[T]
lo Optional[T]
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 6
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int) -> T
empty
empty(**kwargs)
done
done(self: Self)
loop
loop[partial: Literal[bool], S: type](self: Self, a: Ptr[S], n: int, stride: int)
class ArgMinRedux
class ArgMinRedux[T]
Fields 3
m Optional[T]
i int
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 5
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
class ArgMaxRedux
class ArgMaxRedux[T]
Fields 3
m Optional[T]
i int
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 5
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
class AnyRedux
class AnyRedux[T]
Fields 2
a bool
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 5
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
class AllRedux
class AllRedux[T]
Fields 2
a bool
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 5
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
class NonZeroRedux
class NonZeroRedux[T]
Fields 2
nonzero int
T type
Constructors 1
__init__
__init__(self: Self, **kwargs)
Methods 7
create
create[T: type](**kwargs)
accept
accept(self: Self, item: T, index: int)
result
result(self: Self, count: int)
empty
empty(**kwargs)
done
done(self: Self)
gradual_init
gradual_init(self: Self, **kwargs)
gradual_accept
gradual_accept(self: Self, curr, item, index: int, **kwargs)
function sum
sum[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, initial = 0, where = util._NoValue())
function nansum
nansum[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, initial = 0, where = util._NoValue())
function prod
prod[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, initial = 1, where = util._NoValue())
function nanprod
nanprod[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, initial = 1, where = util._NoValue())
function mean
mean[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, where = util._NoValue())
function nanmean
nanmean[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, where = util._NoValue())
function var
var[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, where = util._NoValue())
function nanvar
nanvar[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, where = util._NoValue())
function std
std[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, where = util._NoValue())
function nanstd
nanstd[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, where = util._NoValue())
function min
min[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, initial = util._NoValue(), where = util._NoValue())
function max
max[dtype: type = NoneType, keepdims: Literal[bool] = False](a, axis = None, out = None, ddof: int = 0, initial = util._NoValue(), where = util._NoValue())
function ptp
ptp[keepdims: Literal[bool] = False](a, axis = None, out = None)
function argmin
argmin[keepdims: Literal[bool] = False](a, axis = None, out = None)
function argmax
argmax[keepdims: Literal[bool] = False](a, axis = None, out = None)
function any
any[keepdims: Literal[bool] = False](a, axis = None, out = None, where = util._NoValue())
function all
all[keepdims: Literal[bool] = False](a, axis = None, out = None, where = util._NoValue())
function count_nonzero
count_nonzero[keepdims: Literal[bool] = False](a, axis = None)
function median
median[keepdims: Literal[bool] = False](a, axis = None, out = None, overwrite_input: bool = False)
function nanmedian
nanmedian[keepdims: Literal[bool] = False](a, axis = None, out = None, overwrite_input: bool = False)
function quantile
quantile[keepdims: Literal[bool] = False](a, q, axis = None, out = None, overwrite_input: bool = False, method: str = "linear", interpolation = None)
function nanquantile
nanquantile[keepdims: Literal[bool] = False](a, q, axis = None, out = None, overwrite_input: bool = False, method: str = "linear", interpolation = None)
function percentile
percentile[keepdims: Literal[bool] = False](a, q, axis = None, out = None, overwrite_input: bool = False, method: str = "linear", interpolation = None)
function nanpercentile
nanpercentile[keepdims: Literal[bool] = False](a, q, axis = None, out = None, overwrite_input: bool = False, method: str = "linear", interpolation = None)
class ndarray
@extend
class ndarray[dtype, ndim]
Methods 15
sum
sum[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, initial = 0, where = util._NoValue())
prod
prod[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, initial = 1, where = util._NoValue())
mean
mean[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, where = util._NoValue())
nanmean
nanmean[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, where = util._NoValue())
var
var[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, where = util._NoValue())
nanvar
nanvar[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, where = util._NoValue())
std
std[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, where = util._NoValue())
nanstd
nanstd[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, where = util._NoValue())
min
min[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, initial = util._NoValue(), where = util._NoValue())
ptp
ptp[keepdims: Literal[bool] = False](self: Self, axis = None, out = None)
max
max[dtype: type = NoneType, keepdims: Literal[bool] = False](self: Self, axis = None, out = None, ddof: int = 0, initial = util._NoValue(), where = util._NoValue())
argmin
argmin[keepdims: Literal[bool] = False](self: Self, axis = None, out = None)
argmax
argmax[keepdims: Literal[bool] = False](self: Self, axis = None, out = None)
any
any[keepdims: Literal[bool] = False](self: Self, axis = None, out = None, where = util._NoValue())
all
all[keepdims: Literal[bool] = False](self: Self, axis = None, out = None, where = util._NoValue())