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

◆ displayElementArray()

template<typename RingType>
std::ostream & ConcreteVectorArithmetic< RingType >::displayElementArray ( std::ostream & o,
const ElementArray & v ) const
inline

Definition at line 477 of file VectorArithmetic.hpp.

478 {
479 auto& vec = * elementArray(v);
480
481 bool first = true;
482 o << "[(" << vec.size() << ")";
483 for (const auto& a : vec)
484 {
485 buffer b;
486 mRing->elem_text_out(b, a, true, true, true);
487 if (first)
488 first = false;
489 else
490 o << ",";
491 o << b.str();
492 }
493 o << "]" << std::endl;
494 return o;
495 }
size_t size(const ElementArray &coeffs) const
Linear Algebra /////.
ElementArrayContainer * elementArray(const ElementArray &f) const

References elementArray(), mRing, and buffer::str().