Macaulay2 Engine
Loading...
Searching...
No Matches

◆ eval()

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::eval ( const RingMap * map,
const ring_elem f,
int first_var ) const
inlinevirtual

Implements Ring.

Definition at line 451 of file aring-glue.hpp.

454 {
455 // TODO we shouldn't have to use a non-const element type,
456 // but lots of ARing instances use a non-const reference for the input
457 // this should be fixable, but will require checking
458 Element a(*R);
460 R->from_ring_elem(a, f);
461 R->eval(map, a, first_var, result);
462 return result;
463 }
std::unique_ptr< RingType > R
RingType::Element Element