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

◆ pushBackNegatedElement()

template<typename RingType>
void ConcreteVectorArithmetic< RingType >::pushBackNegatedElement ( ElementArray & coeffs,
const ElementArray & take_from_here,
size_t loc ) const
inline

Definition at line 565 of file VectorArithmetic.hpp.

568 {
569 auto& svec = * elementArray(coeffs);
571 assert(loc < svec2.size());
573 mRing->init_set(a, svec2[loc]);
574 mRing->negate(a, a);
575 svec.emplace_back(a);
576 }
size_t size(const ElementArray &coeffs) const
Linear Algebra /////.
ElementArrayContainer * elementArray(const ElementArray &f) const
typename RingType::ElementType FieldElement

References elementArray(), and mRing.