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

Method floor

funct/Array.py:201–206  ·  view source on GitHub ↗

Floors the Array elements.

(self, inplace=False)

Source from the content-addressed store, hash-verified

199 return sum(self.mul(weights)) / sum(weights)
200
201 def floor(self, inplace=False):
202 """ Floors the Array elements. """
203 a = map(math.floor, self)
204 if inplace:
205 return self.__setinplace(a, inplace)
206 return Array(a)
207
208 def floor_(self):
209 """ Floors the Array elements in-place. """

Callers

nothing calls this directly

Calls 2

__setinplaceMethod · 0.95
ArrayClass · 0.85

Tested by

no test coverage detected