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

◆ get_parts()

ring_elem * PolyRing::get_parts ( const std::vector< int > & wts,
const ring_elem f,
long & result_len ) const
virtual

Implements PolynomialRing.

Definition at line 1838 of file poly.cpp.

1841{
1842 // (1) Make a hashtable: keys are weight values, values are indices into an
1843 // array
1844 // (2) Loop over all terms, inserting a copy of each term at the correct
1845 // weight value
1846 // (3) Sort the array, by increasing weight values.
1847 // (4) Make an array, copy the elems to it.
1848
1849 (void) wts;
1850 (void) f;
1851 (void) result_len;
1852 return nullptr;
1853}