Chalkboard - v3.0.1
    Preparing search index...

    Type Alias ChalkboardStructure<T>

    The type for algebraic structures.

    type ChalkboardStructure<T> = {
        add?: (a: T, b: T) => T;
        addIdentity?: T;
        addInverter?: (a: T) => T;
        identity?: T;
        inverter?: (a: T) => T;
        mul?: (a: T, b: T) => T;
        mulIdentity?: T;
        mulInverter?: (a: T) => T;
        operation?: (a: T, b: T) => T;
        set: ChalkboardSet<T>;
    }

    Type Parameters

    • T
    Index

    Properties

    add?: (a: T, b: T) => T

    The additive operation (e.g., for rings/fields)

    addIdentity?: T

    The additive identity element (e.g., for rings/fields)

    addInverter?: (a: T) => T

    The function to compute additive inverses (e.g., for rings/fields)

    identity?: T

    The identity element (e.g., for groups/monoids)

    inverter?: (a: T) => T

    The function to compute inverses (e.g., for groups)

    mul?: (a: T, b: T) => T

    The multiplicative operation (e.g., for rings/fields)

    mulIdentity?: T

    The multiplicative identity element (e.g., for rings/fields)

    mulInverter?: (a: T) => T

    The function to compute multiplicative inverses (e.g., for fields)

    operation?: (a: T, b: T) => T

    The binary operation (e.g., for groups/monoids)

    The set of the structure