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

◆ makeMonic()

template<typename RingType>
void ConcreteVectorArithmetic< RingType >::makeMonic ( ElementArray & sparse) const
inline

Definition at line 397 of file VectorArithmetic.hpp.

398 {
399 auto& svec = * elementArray(sparse);
400
402
403 mRing->invert(leadCoeffInv,svec[0]);
404
405 for (auto& c : svec) { mRing->mult(c, c, leadCoeffInv); }
406 }
ElementArrayContainer * elementArray(const ElementArray &f) const

References elementArray(), and mRing.