utils package¶
Root imports for the tno.mpc.encryption_schemes.utils package.
- utils.custom_showwarning(message, category, _filename, _lineno, file=None, _line=None)[source]¶
Custom warning formatter and printer for python warnings. Prints category and message to output file, default stderr.
- Parameters:
message (
Warning|str) – Warning message, explaining the reason for the warning.category (
type[Warning]) – Warning category.file (
TextIO|None) – Optional location to write the warning to. If None we write to stderr.
- Return type:
None
Submodules¶
- utils.fixed_point module
FixedPointFixedPoint.DEFAULT_FLOAT_PRECISIONFixedPoint.__abs__()FixedPoint.__add__()FixedPoint.__bool__()FixedPoint.__eq__()FixedPoint.__float__()FixedPoint.__ge__()FixedPoint.__gt__()FixedPoint.__init__()FixedPoint.__int__()FixedPoint.__le__()FixedPoint.__lshift__()FixedPoint.__lt__()FixedPoint.__mod__()FixedPoint.__mul__()FixedPoint.__neg__()FixedPoint.__radd__()FixedPoint.__repr__()FixedPoint.__rmod__()FixedPoint.__rmul__()FixedPoint.__round__()FixedPoint.__rshift__()FixedPoint.__rsub__()FixedPoint.__rtruediv__()FixedPoint.__str__()FixedPoint.__sub__()FixedPoint.__truediv__()FixedPoint.calibrate()FixedPoint.deserialize()FixedPoint.fxp()FixedPoint.initiate_from_float()FixedPoint.initiate_from_fxp()FixedPoint.initiate_from_int()FixedPoint.initiate_from_string()FixedPoint.precisionFixedPoint.random_range()FixedPoint.round_to_precision()FixedPoint.serialize()FixedPoint.strong_eq()FixedPoint.value
- utils.utils module