sortColumns f -- sorts the columns of a matrix, returning a list of integers describing the resulting permutation.
The sort ordering used is by degree first, and then by monomial order. Optional arguments may be given to specify whether the ordering is ascending, descending, or ignored. The default ordering is ascending.
i1 : R = ZZ/101[a..c]; |
i2 : f = matrix{{1,a,a^2,b^2,b,c,c^2,a*b,b*c,a*c}} |
i3 : s = sortColumns f |
i4 : f_s |
i5 : s = sortColumns(f,DegreeOrder => Descending) |
i6 : f_s |
Ways to use sortColumns :
Optional arguments :