names = normalize_names(W.dimension(), valid_names[name_idx])
cat = superalgebra.category().Associative()
-
- # TODO: compute this and actually specify it.
- natural_basis = None
+ natural_basis = tuple( b.natural_representation()
+ for b in superalgebra_basis )
fdeja = super(FiniteDimensionalEuclideanJordanElementSubalgebra, cls)
return fdeja.__classcall__(cls,
class Element(FiniteDimensionalEuclideanJordanAlgebraElement):
+ """
+
+ SETUP::
+
+ sage: from mjo.eja.eja_algebra import random_eja
+
+ TESTS::
+
+ The natural representation of an element in the subalgebra is
+ the same as its natural representation in the superalgebra::
+
+ sage: set_random_seed()
+ sage: A = random_eja().random_element().subalgebra_generated_by()
+ sage: y = A.random_element()
+ sage: actual = y.natural_representation()
+ sage: expected = y.superalgebra_element().natural_representation()
+ sage: actual == expected
+ True
+
+ """
def __init__(self, A, elt=None):
"""
SETUP::