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

◆ ringElemFromElementArray()

template<typename RingType>
ring_elem ConcreteVectorArithmetic< RingType >::ringElemFromElementArray ( const ElementArray & sparse,
int index ) const
inline

Definition at line 458 of file VectorArithmetic.hpp.

460 {
461 auto& svec = * elementArray(sparse);
463 mRing->to_ring_elem(tmp,svec[index]);
464 return tmp;
465 }
ElementArrayContainer * elementArray(const ElementArray &f) const

References elementArray(), and mRing.