add constructor for Residue from long long

This commit is contained in:
Alexander Kobel 2014-11-24 10:48:20 +01:00
parent 7ee7a45011
commit fb93886709
1 changed files with 5 additions and 0 deletions

View File

@ -233,6 +233,11 @@ public:
x_= RES_soft_reduce (static_cast< double > (n % get_prime_int()));
}
//! constructor of Residue, from long long
Residue (long long n) {
x_= RES_soft_reduce (static_cast< double > (n % get_prime_int()));
}
//! Access operator for x, \c const
const double& x() const { return x_; }
//! Access operator for x