mirror of https://github.com/CGAL/cgal
add constructor for Residue from long long
This commit is contained in:
parent
7ee7a45011
commit
fb93886709
|
|
@ -232,6 +232,11 @@ public:
|
|||
Residue (long n) {
|
||||
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_; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue