]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: use sexier FiniteDimensionalAlgebrasWithBasis category.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jul 2019 20:58:01 +0000 (16:58 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 29 Jul 2019 03:19:01 +0000 (23:19 -0400)
mjo/eja/euclidean_jordan_algebra.py

index 2b00302dc73461f089390a715bb1f12dc7aef6c1..304d7ff7b9298aa98763e210f565f83e3893b791 100644 (file)
@@ -5,7 +5,7 @@ are used in optimization, and have some additional nice methods beyond
 what can be supported in a general Jordan Algebra.
 """
 
-from sage.categories.magmatic_algebras import MagmaticAlgebras
+from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis
 from sage.structure.element import is_Matrix
 from sage.structure.category_object import normalize_names
 
@@ -282,7 +282,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra):
                 raise ValueError("input is not a multiplication table")
         mult_table = tuple(mult_table)
 
-        cat = MagmaticAlgebras(field).FiniteDimensional().WithBasis()
+        cat = FiniteDimensionalAlgebrasWithBasis(field)
         cat.or_subcategory(category)
         if assume_associative:
             cat = cat.Associative()