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

◆ from_long()

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::from_long ( long n) const
inlinevirtual

Implements Ring.

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

151 {
152 if (displayArithmeticCalls) fprintf(stderr, "calling from_long\n");
154 Element a(*R);
155 R->set_from_long(a, n);
156 R->to_ring_elem(result, a);
157 return result;
158 }
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by getElement< RingCCC >(), getElement< RingQQ >(), getElement< RingRRR >(), TEST(), and TEST().