From: Michael Orlitzky Date: Sat, 6 Mar 2021 14:30:24 +0000 (-0500) Subject: octonions: add a test for Cartesian products. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=commitdiff_plain;h=d006c2e856b970d2f8e77d738030ef2e63ec5b78 octonions: add a test for Cartesian products. --- diff --git a/mjo/octonions.py b/mjo/octonions.py index fb4b833..2850545 100644 --- a/mjo/octonions.py +++ b/mjo/octonions.py @@ -382,6 +382,16 @@ class OctonionMatrixAlgebra(HurwitzMatrixAlgebra): | e2 - e6 | e3 - e7 | +---------+---------+ + :: + + sage: A1 = OctonionMatrixAlgebra(1,QQ) + sage: A2 = OctonionMatrixAlgebra(1,QQ) + sage: cartesian_product([A1,A2]) + Module of 1 by 1 matrices with entries in Octonion algebra with + base ring Rational Field over the scalar ring Rational Field (+) + Module of 1 by 1 matrices with entries in Octonion algebra with + base ring Rational Field over the scalar ring Rational Field + TESTS:: sage: set_random_seed()