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

◆ appendToContainer()

template<typename RingType>
template<typename Container>
void ConcreteVectorArithmetic< RingType >::appendToContainer ( const ElementArray & sparse,
Container & c ) const
inline

Definition at line 409 of file VectorArithmetic.hpp.

411 {
412 auto& svec = * elementArray(sparse);
413 for (const auto& a : svec)
414 {
416 mRing->to_ring_elem(tmp,a);
417 c.push_back(tmp);
418 }
419 }
ElementArrayContainer * elementArray(const ElementArray &f) const

References elementArray(), and mRing.