Objects of the class ZZ_p are represented as a ZZ
in the
range
.
An executing program maintains a "current modulus", which is set to p with ntl_ZZ_p.init(p). The current modulus should be initialized before any ZZ_p objects are created.
The modulus may be changed, and a mechanism is provided for saving and restoring a modulus (see classes ZZ_pBak and ZZ_pContext below).
__add__,
__cmp__,
__invert__,
__mul__,
__neg__,
__pow__,
__radd__,
__repr__,
__rmul__,
__rpow__,
__rsub__,
__sub__
See About this document... for information on suggesting changes.