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

◆ setZeroInRange()

template<typename RingType>
void ConcreteVectorArithmetic< RingType >::setZeroInRange ( ElementArray & dense,
int first,
int last ) const
inline

Definition at line 385 of file VectorArithmetic.hpp.

388 {
389 auto& dvec = * elementArray(dense);
390
391 // first can be -1 if the row is zero. in this case, we should
392 // not be accessing dvec[i] for i negative.
393 for (int i = first; i >= 0 and i <= last; i++)
394 mRing->set_zero(dvec[i]);
395 }
ElementArrayContainer * elementArray(const ElementArray &f) const

References dvec(), elementArray(), and mRing.