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