MCPcopy Create free account
hub / github.com/Lauriat/funct / add_

Method add_

funct/Array.py:55–61  ·  view source on GitHub ↗

Inplace element-wise addition with given scalar or sequence.

(self, e)

Source from the content-addressed store, hash-verified

53 return self.__operate(operator.add, e, inplace)
54
55 def add_(self, e):
56 """
57 Inplace element-wise addition with given scalar or sequence.
58 """
59 warn()
60 self[:] = self.__operate(operator.add, e, True)
61 return self
62
63 def sub(self, e, inplace=False):
64 """

Callers 2

testMethod · 0.95
test_errsMethod · 0.80

Calls 1

__operateMethod · 0.95

Tested by 2

testMethod · 0.76
test_errsMethod · 0.64