Opened 16 years ago
Closed 16 years ago
#793 closed doubt (fixed)
Malfunction in Sort Matrix function — at Version 1
| Reported by: | César Pérez Álvarez | Owned by: | Víctor de Buen Remiro |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Kernel | Version: | 1.1.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by )
I would expect that
Matrix mat = Rand(100, 1, 0, 30); Matrix matS = Sort(mat, SetOfReal(1));
puts in order the matrix mat, however it seems do nothing.
Can someone help me? Thanks...
Change History (1)
comment:1 Changed 16 years ago by
| Description: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

I've checked this function and it's all right. You may want to write this?
I think the description of this function could help you
Sort {Matrix Sort(Matrix mat, Set criterium)criterium=[[-2,3]]sorts by 2-nd column descent and 3-th one ascent in case of tie. Returns the permutation matrix p such thatPivotByRows(mat,p)is the sorted matrix.criterium=[[-2,3]]ordena por la segunda columna descendente y por la tercera ascendente en caso de empate.Devuelve la matriz de permutación tal quePivotByRows(mat,p)es la matriz ordenada.