From: Michael Orlitzky Date: Sat, 6 Jul 2019 02:27:29 +0000 (-0400) Subject: eja: pass a dimension to a matrix() constructor for an extra sanity check. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=9db2ac0737daced914d4bdad2a63049171bb6e36;p=sage.d.git eja: pass a dimension to a matrix() constructor for an extra sanity check. --- 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