Calculates the Cayley table for an algebraic structure.

  • Parameters

    • struc: ChalkboardStructure<number>

      The algebraic structure

    • Optionaltype: "add" | "mul" = "add"

      The type of operation to calculate the Cayley table for ("add" for additive operations, "mul" for multiplicative operations, defaults to "add")

    Returns ChalkboardMatrix