symcrys
    Preparing search index...

    Interface TensorForm

    The form of a tensor under a point group: the subspace of tensors invariant under every operation and with the requested index symmetry. Every entry is a plain number; a vector of components has length 3^rank (flat index, see the module documentation).

    interface TensorForm {
        rank: TensorRank;
        basis: readonly (readonly number[])[];
        parameters: readonly (readonly number[])[];
        relations: readonly (readonly number[])[];
    }
    Index

    The rank of the tensor.

    basis: readonly (readonly number[])[]

    A basis of the allowed tensors in reduced row echelon form: one row per free parameter, with 1 at the parameter's own component and 0 at every other parameter's component. Every allowed tensor is Σₖ pₖ·basis[k], where pₖ is the value of its component parameters[k]. Empty if the tensor vanishes.

    parameters: readonly (readonly number[])[]

    The free parameters, as the index lists of their components (e.g. [0, 1, 1] for xyy), one per basis row and in its order: each is the lowest component independent of those before it.

    relations: readonly (readonly number[])[]

    The constraints: one row r per component that is not a parameter, in ascending flat index, with r·t = 0 for every allowed tensor t. Row c reads t_c − Σₖ basis[k][c]·t_{parameters[k]} = 0; a row with a single 1 says that the component vanishes.