# component of x; and likewise for the ith basis element e_i.
Qs = [ matrix(field, dimension, dimension, lambda k,j: 1*(k == j == i))
for i in xrange(dimension) ]
- A = FiniteDimensionalAlgebra(QQ,Qs,assume_associative=True)
+
+ # Assuming associativity is wrong here, but it works to
+ # temporarily trick the Jordan algebra constructor into using the
+ # multiplication table.
+ A = FiniteDimensionalAlgebra(field,Qs,assume_associative=True)
return JordanAlgebra(A)
Qi[0,0] = Qi[0,0] * ~field(2)
Qs.append(Qi)
- A = FiniteDimensionalAlgebra(QQ,Qs,assume_associative=True)
+ # Assuming associativity is wrong here, but it works to
+ # temporarily trick the Jordan algebra constructor into using the
+ # multiplication table.
+ A = FiniteDimensionalAlgebra(field,Qs,assume_associative=True)
return JordanAlgebra(A)