Chalkboard - v3.1.0
    Preparing search index...

    Function get

    • Returns a fresh copy of an indexed subtensor, or its number or null leaf when every axis is indexed.

      Parameters

      • tens: ChalkboardTensor

        The tensor

      • ...index: number[]

        At most one non-negative in-bounds index per axis, as a sequence or one array, while an empty index copies the whole tensor

      Returns ChalkboardTensor | null

      const result = Chalkboard.tens.get([[1, 2, 3], [4, 5, 6]], 1, 2); // Returns 6