Modular_image_inv functor added for Modular_arithmetic tests to work correctly.

This commit is contained in:
Sebastian Limbach 2007-08-01 09:51:00 +00:00
parent eb84eb8a23
commit 4106d96ac5
1 changed files with 11 additions and 0 deletions

View File

@ -53,7 +53,18 @@ public:
return Modular_NT(V.begin(),V.end());
}
};
struct Modular_image_inv{
NT operator()(const Modular_NT& p) const {
std::vector<COEFF> V;
typename Mtr::Modular_image_inv modular_image_inv;
for(int i=0; i<=p.degree();i++)
V.push_back(modular_image_inv(p[i]));
return NT(V.begin(),V.end());
}
};
};
CGAL_END_NAMESPACE
#endif // CGAL_POLYNOMIAL_MODULAR_TRAITS_TRAITS_H