MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / divmod

Method divmod

cutlass.py/fast_math.py:25–28  ·  view source on GitHub ↗
(self, dividend)

Source from the content-addressed store, hash-verified

23 return dividend & (self.divisor - 1)
24
25 def divmod(self, dividend):
26 quotient = self.divide(dividend)
27 remainder = self.modulus(dividend)
28 return quotient, remainder
29
30 def __call__(self, dividend):
31 return self.divmod(dividend)

Callers 1

__call__Method · 0.95

Calls 2

divideMethod · 0.95
modulusMethod · 0.95

Tested by

no test coverage detected