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

◆ pushBackOne()

template<typename RingType>
void ConcreteVectorArithmetic< RingType >::pushBackOne ( ElementArray & coeffs) const
inline

Append support /////.

Definition at line 535 of file VectorArithmetic.hpp.

536 {
537 auto& svec = * elementArray(coeffs);
539 mRing->init(one);
540 mRing->set_from_long(one, 1);
541 svec.emplace_back(one); // This grabs 'one' in cases where it is allocated... I think...!
542 }
ElementArrayContainer * elementArray(const ElementArray &f) const
typename RingType::ElementType FieldElement

References elementArray(), and mRing.