From 9db2ac0737daced914d4bdad2a63049171bb6e36 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 5 Jul 2019 22:27:29 -0400 Subject: [PATCH] eja: pass a dimension to a matrix() constructor for an extra sanity check. --- mjo/eja/euclidean_jordan_algebra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index d6b183f..f9da3fa 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -721,7 +721,7 @@ def _multiplication_table_from_matrix_basis(basis): for t in S: this_row = mat2vec((s*t + t*s)/2) Q_rows.append(W.coordinates(this_row)) - Q = matrix(field,Q_rows) + Q = matrix(field, W.dimension(), Q_rows) Qs.append(Q) return Qs -- 2.44.2