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

◆ get_part_of_expvector()

void get_part_of_expvector ( M2_arrayint vars,
exponent big,
int comp,
exponent result )
static

Definition at line 1788 of file matrix.cpp.

1797{
1798 for (int j = 0; j < vars->len; j++)
1799 {
1800 int v = vars->array[j];
1801 result[j] = big[v];
1802 big[v] = 0;
1803 }
1804 result[vars->len] = comp;
1805}
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result().

Referenced by Matrix::coeffs(), and coeffs_of_vec().