From: Michael Orlitzky Date: Mon, 8 Mar 2021 21:34:30 +0000 (-0500) Subject: eja: fix a quaternion test. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8229a82cd111c9b2cff401de3c01a41a1ea5771a;p=sage.d.git eja: fix a quaternion test. --- diff --git a/mjo/eja/eja_element.py b/mjo/eja/eja_element.py index ff25b82..6a48309 100644 --- a/mjo/eja/eja_element.py +++ b/mjo/eja/eja_element.py @@ -1111,14 +1111,11 @@ class FiniteDimensionalEJAElement(IndexedFreeModuleElement): sage: J.one() b0 + b5 sage: J.one().to_matrix() - [1 0 0 0 0 0 0 0] - [0 1 0 0 0 0 0 0] - [0 0 1 0 0 0 0 0] - [0 0 0 1 0 0 0 0] - [0 0 0 0 1 0 0 0] - [0 0 0 0 0 1 0 0] - [0 0 0 0 0 0 1 0] - [0 0 0 0 0 0 0 1] + +---+---+ + | 1 | 0 | + +---+---+ + | 0 | 1 | + +---+---+ This also works in Cartesian product algebras::