]> gitweb.michael.orlitzky.com - sage.d.git/commit
eja: store the multiplication table as a matrix.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Aug 2019 01:07:23 +0000 (21:07 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Aug 2019 01:07:23 +0000 (21:07 -0400)
commit98c3ab3a9df8c634a0fbb05ed6ad22abf41118f3
tree385e0b14c277fc6ea5745526501f56a0f11190ae
parent6beb5d9be0574fd57b355125d4629b20adef7149
eja: store the multiplication table as a matrix.

This way, we don't need to either regenerate it when someone calls
multiplication_table(), or cache a second copy of it. Besides,
matrices are efficient and indexing one is probably faster than
indexing a list of lists.
mjo/eja/eja_algebra.py