Dear Nils, On Wednesday, 20 August 2025 at 18:00:15 UTC+2 Nils Bruin wrote:
On Wednesday, 20 August 2025 at 02:57:36 UTC-7 axio...@yahoo.de wrote: Well, rank is really the standard term in computational combinatorics. But, as you note, it doesn't play nicely with terminology from other areas of mathematics -- the meaning of "rank" as for a matrix and for (free) rank of a module is very ingrained. Due to its very standard meaning for matrix, I'm confident that scoring the use of "rank" in the math literature will associate it most with its module meaning. For elliptic curves, this meaning also comes up for the abelian group formed by their rational points (a Z-module). Sorry, I wasn't clear. What I meant is that `rank` and `unrank` should be *part* of the name. As far as I know the literature, `index` is not used in this context. See, for example, https://page.math.tu-berlin.de/~felsner/SemWS17-18/Ruskey-Comb-Gen.pdf A common tool used to resolve such name clashes is to use an underscored name. So you'd end up with ordinal_rank or enumeration_rank then. I still like enumeration_index better in that context. In my original post I proposed `total_order_rank` and `total_order_unrank`. I think it would be good to have the same prefix, in order not to further clutter the already long list of method names you get by tab completion in enumerated sets. All the best, Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/bbc95b88-6a5a-48c0-8c86-98da7935685an%40googlegroups.com.