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

◆ mult()

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::mult ( const ring_elem f,
const ring_elem g ) const
inlinevirtual

Implements Ring.

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

357 {
358 if (displayArithmeticCalls) fprintf(stderr, "calling mult\n");
359 const ElementType &a = R->from_ring_elem_const(f);
360 const ElementType &b = R->from_ring_elem_const(g);
361 Element c(*R);
363 R->mult(c, a, b);
364 R->to_ring_elem(result, c);
365 return result;
366 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().