From 8229a82cd111c9b2cff401de3c01a41a1ea5771a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 8 Mar 2021 16:34:30 -0500 Subject: [PATCH] eja: fix a quaternion test. --- mjo/eja/eja_element.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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:: -- 2.44.2