]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: pass a dimension to a matrix() constructor for an extra sanity check.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 6 Jul 2019 02:27:29 +0000 (22:27 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 29 Jul 2019 03:19:01 +0000 (23:19 -0400)
mjo/eja/euclidean_jordan_algebra.py

index d6b183f8fbfc75799ed63bc5e7ae21d2a85e8b6a..f9da3fab90458b741a3598625e287fced552d0fe 100644 (file)
@@ -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