Module refinery.units.blockwise.sub
Expand source code Browse git
from __future__ import annotations
from refinery.units.blockwise import BinaryOperationWithAutoBlockAdjustment
class sub(BinaryOperationWithAutoBlockAdjustment):
"""
Subtract the given argument from each block.
"""
@staticmethod
def operate(a, b): return a - b
@staticmethod
def inplace(a, b): a -= b
Classes
class sub (*argument, bigendian=False, blocksize=0)-
Subtract the given argument from each block.
Expand source code Browse git
class sub(BinaryOperationWithAutoBlockAdjustment): """ Subtract the given argument from each block. """ @staticmethod def operate(a, b): return a - b @staticmethod def inplace(a, b): a -= bAncestors
- BinaryOperationWithAutoBlockAdjustment
- BinaryOperation
- ArithmeticUnit
- BlockTransformation
- BlockTransformationBase
- Unit
- UnitBase
- Entry
Subclasses
Class variables
var required_dependenciesvar optional_dependenciesvar consolevar reverse
Static methods
def operate(a, b)-
Expand source code Browse git
@staticmethod def operate(a, b): return a - b def inplace(a, b)-
Expand source code Browse git
@staticmethod def inplace(a, b): a -= b
Inherited members