|
CGAL 5.1 - Modular Arithmetic
|
#include <Concepts/ModularTraits--ModularImage.h>
This AdaptableUnaryFunction computes the modular image of the given value with respect to a homomorphism \( \varphi\) from the ModularTraits::Type into the ModularTraits::Residue_type.
The homomorphism preserves the mapping of int into both types , i.e., \( \varphi(\mathrm{Type}(i)) == \mathrm{Residue\_type}(i)\).
AdaptableUnaryFunctionModularTraits Types | |
| typedef ModularTraits::Residue_type | result_type |
| typedef ModularTraits::Type | argument_type |
| result_type | operator() (const argument_type &x) |
| computes \( \varphi(x)\). More... | |
| result_type ModularTraits::ModularImage::operator() | ( | const argument_type & | x | ) |
computes \( \varphi(x)\).