63 if (v1 ==
nullptr)
return 1;
64 if (v2 ==
nullptr)
return -1;
72 int cmp =
R->compare_vecs(v1, v2);
133 for (
int i = 0; i < nelems; i++)
140 for (
int i = 0; i < nelems; i++)
sort_vals[i] = i;
int primary_degree(int i) const
const Ring * get_ring() const
ring_elem elem(int i, int j) const
M2_arrayint sort(int degorder, int monorder) const
const FreeModule * cols() const
int sort_compare(int i, int j)
int sort_partition(int lo, int hi)
M2_arrayintOrNull value()
MatrixSorter(const Matrix *m, int degorder, int ringorder)
void sort_range(int lo, int hi)
Helper that computes a column permutation for an engine Matrix by degree-then-monomial-order sort.
M2_arrayint M2_makearrayint(int n)
M2_arrayint M2_arrayintOrNull
Matrix — the engine's immutable homomorphism F -> G between free modules.
#define newarray_atomic(T, len)