Class MatrixLieAlgebra<E>

java.lang.Object
org.episteme.core.mathematics.algebra.algebras.MatrixLieAlgebra<E>
All Implemented Interfaces:
Algebra<Matrix<E>, E>, LieAlgebra<Matrix<E>, E>, AbelianGroup<Matrix<E>>, AbelianMonoid<Matrix<E>>, Group<Matrix<E>>, Magma<Matrix<E>>, Monoid<Matrix<E>>, Ring<Matrix<E>>, Semiring<Matrix<E>>, Set<Matrix<E>>, Module<Matrix<E>, E>

public class MatrixLieAlgebra<E> extends Object implements LieAlgebra<Matrix<E>, E>
A concrete Lie Algebra where elements are square matrices and the bracket is the commutator [A, B] = AB - BA.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • MatrixLieAlgebra

      public MatrixLieAlgebra(Field<E> field, int n)
  • Method Details

    • dimension

      public int dimension()
      Returns the dimension of the Lie algebra (n^2 for n×n matrices).
    • getScalarField

      public Field<E> getScalarField()
      Returns the scalar field.
    • getScalarRing

      public Field<E> getScalarRing()
      Description copied from interface: Module
      Returns the ring of scalars for this module.
      Specified by:
      getScalarRing in interface Module<Matrix<E>, E>
      Returns:
      the scalar ring
    • multiply

      public Matrix<E> multiply(Matrix<E> a, Matrix<E> b)
      Description copied from interface: Algebra
      The bilinear product operation.

      This is the same as the Ring multiplication, but explicitly viewed as the algebra product.

      Specified by:
      multiply in interface Algebra<Matrix<E>, E>
      Specified by:
      multiply in interface Semiring<E>
      Parameters:
      a - the first factor
      b - the second factor
      Returns:
      a × b
    • operate

      public Matrix<E> operate(Matrix<E> left, Matrix<E> right)
      Description copied from interface: Magma
      Performs the binary operation on two elements.

      This is the fundamental operation of a magma. The result must be an element of this magma (closure property).

      Properties: None required (not necessarily associative or commutative)

      Specified by:
      operate in interface Magma<E>
      Parameters:
      left - the first operand
      right - the second operand
      Returns:
      the result of a ∗ b
      See Also:
    • add

      public Matrix<E> add(Matrix<E> a, Matrix<E> b)
      Description copied from interface: AbelianMonoid
      Returns the sum of two elements (additive notation).

      Delegates to Magma.operate(Object, Object).

      Specified by:
      add in interface AbelianMonoid<E>
      Parameters:
      a - the first addend
      b - the second addend
      Returns:
      a + b
    • zero

      public Matrix<E> zero()
      Description copied from interface: AbelianMonoid
      Returns the additive identity (zero element).

      Delegates to AbelianMonoid.identity().

      Specified by:
      zero in interface AbelianMonoid<E>
      Returns:
      the zero element
    • negate

      public Matrix<E> negate(Matrix<E> element)
      Description copied from interface: AbelianGroup
      Returns the additive inverse (negation) of an element.

      Satisfies: a + (-a) = (-a) + a = 0

      Specified by:
      negate in interface AbelianGroup<E>
      Parameters:
      element - the element to negate
      Returns:
      -element
      See Also:
    • inverse

      public Matrix<E> inverse(Matrix<E> element)
      Description copied from interface: Group
      Returns the inverse of the given element.

      For element a, returns a⁻¹ such that: a ∗ a⁻¹ = a⁻¹ ∗ a = e (identity).

      Specified by:
      inverse in interface Group<E>
      Parameters:
      element - the element to invert
      Returns:
      the inverse element
    • description

      public String description()
      Description copied from interface: Set
      Returns a human-readable description of this set.

      Examples:

      • "ℝ (Real Numbers)"
      • "ℤ/12ℤ (Integers modulo 12)"
      • "{1, 2, 3, 4, 5}"

      Specified by:
      description in interface Set<E>
      Returns:
      a description of this set
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Set
      Returns true if this set contains no elements.

      The empty set (∅) is a fundamental concept in set theory. It is the unique set containing no elements.

      Specified by:
      isEmpty in interface Set<E>
      Returns:
      true if this set is empty
    • contains

      public boolean contains(Matrix<E> element)
      Description copied from interface: Set
      Tests whether this set contains the specified element.

      This is the fundamental operation of a set - membership testing.

      Specified by:
      contains in interface Set<E>
      Parameters:
      element - the element to test for membership
      Returns:
      true if this set contains the element, false otherwise
      See Also:
    • scale

      public Matrix<E> scale(E scalar, Matrix<E> element)
      Description copied from interface: Module
      Scalar multiplication (r × m).
      Specified by:
      scale in interface Module<Matrix<E>, E>
      Parameters:
      scalar - the scalar r ∈ R
      element - the module element m ∈ M
      Returns:
      r × m
    • isMultiplicationCommutative

      public boolean isMultiplicationCommutative()
      Description copied from interface: Semiring
      Tests whether multiplication is commutative in this semiring.
      Specified by:
      isMultiplicationCommutative in interface Semiring<E>
      Returns:
      true if multiplication commutes
    • one

      public Matrix<E> one()
      Description copied from interface: Semiring
      Returns the multiplicative identity (one element).

      Satisfies: 1 × a = a × 1 = a for all elements a.

      Specified by:
      one in interface Semiring<E>
      Returns:
      the multiplicative identity