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