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

◆ to_degree_vector()

M2_arrayint to_degree_vector ( const Monoid * M,
const_monomial d )

Definition at line 46 of file monoid.cpp.

47{
48 auto result = M2_makearrayint(M->n_vars());
49 M->to_expvector(d, result->array);
50 return result;
51}
void to_expvector(const_monomial m, exponents_t result_exp) const
Definition monoid.cpp:747
int n_vars() const
Definition monoid.hpp:207
VALGRIND_MAKE_MEM_DEFINED & result(result)
M2_arrayint M2_makearrayint(int n)
Definition m2-types.cpp:6

References M2_makearrayint(), Monoid::n_vars(), result(), and Monoid::to_expvector().

Referenced by IM2_Matrix_get_degree(), and IM2_RingElement_multidegree().