const cl_MI operator() (const cl_MI& y) const;
public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); }
- void* operator new (size_t size, cl_UP_MI* ptr) { (void)size; return ptr; }
+ void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); }
};
SUBCLASS_cl_heap_univpoly_ring()
const cl_modint_ring& basering () const { return The(cl_modint_ring)(_basering); }
// High-level operations.
- void fprint (cl_ostream stream, const cl_UP_MI& x)
+ void fprint (std::ostream& stream, const cl_UP_MI& x)
{
cl_heap_univpoly_ring::fprint(stream,x);
}
- cl_boolean equal (const cl_UP_MI& x, const cl_UP_MI& y)
+ bool equal (const cl_UP_MI& x, const cl_UP_MI& y)
{
return cl_heap_univpoly_ring::equal(x,y);
}
{
return The2(cl_UP_MI)(cl_heap_univpoly_ring::zero());
}
- cl_boolean zerop (const cl_UP_MI& x)
+ bool zerop (const cl_UP_MI& x)
{
return cl_heap_univpoly_ring::zerop(x);
}
{
return cl_heap_univpoly_ring::degree(x);
}
+ sintL ldegree (const cl_UP_MI& x)
+ {
+ return cl_heap_univpoly_ring::ldegree(x);
+ }
const cl_UP_MI monomial (const cl_MI& x, uintL e)
{
return The2(cl_UP_MI)(cl_heap_univpoly_ring::monomial(x,e));