Timeline for Sorting of a list of lists - i.e. list of matrices - what is the order of the sort determined by?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 7, 2022 at 11:13 | history | edited | Flow | CC BY-SA 4.0 |
added 55 characters in body
|
Jul 7, 2022 at 11:02 | comment | added | Flow | I think about it like this: nxn matrices are of same length, so the first sentence of the documentation quote doesn't help. What's the next depth level below that? The first rows, which are again of same length n. The next level is then the first entry, let's assume a scalar number. And this will be sorted by magnitude. Thus the same size matrices are sorted by their first entry. | |
Jul 7, 2022 at 11:01 | comment | added | Flow | That still holds, I updated the example to your suggestion. | |
Jul 7, 2022 at 11:01 | history | edited | Flow | CC BY-SA 4.0 |
edited body
|
Jul 7, 2022 at 10:59 | comment | added | user293787 |
Since each entry of your m1 is smaller than each entry of m2 , it does not really support your point that the $(1,1)$ entry is decisive. Why not use m1={{1,6},{7,8}}; m2={{5,2},{3,4}}; instead?
|
|
Jul 7, 2022 at 10:57 | comment | added | Flow | Sorry, I just saw the edit after my first answer. :) | |
Jul 7, 2022 at 10:57 | history | edited | Flow | CC BY-SA 4.0 |
added 192 characters in body
|
Jul 7, 2022 at 10:51 | comment | added | 1729taxi | My matrices, as I have amended in the question, are all the same dimension. My question is what is the "canonical order" that Sort uses for a list of matrices. I just saw your statement in regard to the [1,1] entry - well it sure isn't doing that from what I see. I'll get back to this when I can. | |
Jul 7, 2022 at 10:48 | history | answered | Flow | CC BY-SA 4.0 |