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

Method abs_

funct/Array.py:176–180  ·  view source on GitHub ↗

Inplace element-wise absolute value.

(self)

Source from the content-addressed store, hash-verified

174 return Array(a)
175
176 def abs_(self):
177 """ Inplace element-wise absolute value. """
178 self[:] = self.abs()
179 warn()
180 return self
181
182 def sum(self, start=0):
183 """ Returns the sum of the Array elements. """

Callers 1

testMethod · 0.95

Calls 1

absMethod · 0.95

Tested by 1

testMethod · 0.76