Skip to content

module numpy.ufunc

Source: stdlib/numpy/ufunc.codon


decide_types(x, y, dtype: type)


decide_types_copysign(x, y, dtype: type)


decide_types_ldexp(x, y, dtype: type)


UnaryUFunc[__name__,F] @tuple Class is named tuple (cannot write fields)

Fields

F: type

Properties

nin @property Method is a class property

nout @property Method is a class property

Magic methods

__new__(op: F, name: Literal[str], F: type)

__call__(self, x, out = None, where = True, dtype: type = NoneType)

Methods

at(self, a, indices)


UnaryUFunc2[__name__,F] @tuple Class is named tuple (cannot write fields)

Fields

F: type

Properties

nin @property Method is a class property

nout @property Method is a class property

Magic methods

__new__(op: F, name: Literal[str], F: type)

__call__(self, x, out1 = None, out2 = None, out = None, where = True)


BinaryUFunc[__name__,F,I] @tuple Class is named tuple (cannot write fields)

Fields

identity: I

F: type

I: type

Properties

nin @property Method is a class property

nout @property Method is a class property

Magic methods

__new__(op: F, name: Literal[str], identity: I = None, F: type, I: type)

__call__(self, x, y, out = None, where = True, dtype: type = NoneType)

Methods

reduce(self, array, axis = 0, dtype: type = NoneType, out = None, keepdims: Literal[bool] = False, initial = util._NoValue(), where = True)

accumulate(self, array, axis: int = 0, dtype: type = NoneType, out = None)

at(self, a, indices, b)

outer(self, A, B, dtype: type = NoneType)