Chalkboard - v3.1.0
    Preparing search index...

    Function isSymmetric

    • Checks if a tensor is symmetric under swaps of the chosen axes.

      Parameters

      • tens: ChalkboardTensor

        The tensor

      • ...axes: number[]

        Distinct 0-based axes, as a sequence or one array, while an empty list selects all axes

      Returns boolean

      const result = Chalkboard.tens.isSymmetric([[1, 2], [2, 1]]); // Returns true