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

◆ getSmallIntegerCoefficients() [1/2]

M2_arrayintOrNull RingElement::getSmallIntegerCoefficients ( ) const

Definition at line 462 of file relem.cpp.

463{
464 std::vector<long> coeffs;
465 if (!getSmallIntegerCoefficients(coeffs)) return nullptr;
466 return stdvector_to_M2_arrayint(coeffs);
467}
M2_arrayintOrNull getSmallIntegerCoefficients() const
Definition relem.cpp:462
M2_arrayint stdvector_to_M2_arrayint(const std::vector< T > &v)
Definition util.hpp:79

References getSmallIntegerCoefficients(), and stdvector_to_M2_arrayint().

Referenced by getSmallIntegerCoefficients().