Expand description
Implementation of several custom operations. A custom operation can be thought of as a polymorphic function, i.e., where the number of inputs and their types can vary.
Modulesยง
- adder
- Binary adder that adds two bitstrings.
- auc
- AUC score metric, functionally equivalent to sklearn.metrics.roc_auc_score.
- clip
- Clip function that returns a given value if it is inside of the interval [0,2k] and clips values outside this interval to its edges.
- comparisons
- Various comparison functions for signed and unsigned integers including greater-than, less-than, greater-than-equal-to, less-than-equal-to, equal, not-equal.
- fixed_
precision - goldschmidt_
division - Division via the Goldschmidt method.
- integer_
key_ sort - Sort by integer key.
- inverse_
sqrt - Inverse square root approximation via the Newton-Raphson method.
- long_
division - Long division for bitstrings of arbitrary length.
- min_max
- Minimum and maximum operations. They operate on unsigned integers represented as bitstrings.
- multiplexer
- Multiplexer (Mux) operation that takes three inputs a, b, c and returns b if a is 1 or c if a is 0.
- newton_
inversion - Multiplicative inversion via the Newton-Raphson method.
- pwl
- taylor_
exponent - Exp(x) approximation relying on Taylor series expansion.