#ifndef GINAC_RING_TRAITS_HPP #define GINAC_RING_TRAITS_HPP #include #include namespace cln { static inline cln::cl_I div(const cln::cl_I& x, const cln::cl_I& y) { return cln::exquo(x, y); } static inline cln::cl_I get_ring_elt(const cln::cl_I& sample, const int val) { return cln::cl_I(val); } static inline cln::cl_MI get_ring_elt(const cln::cl_MI& sample, const int val) { return sample.ring()->canonhom(val); } template static inline T the_one(const T& sample) { return get_ring_elt(sample, 1); } } // namespace cln #endif // GINAC_RING_TRAITS_HPP