Chalkboard - v3.1.0
    Preparing search index...

    Function stack

    • Returns a tensor with a new axis inserted.

      Parameters

      • tensors: ChalkboardTensor[]

        An array of tensors of equal shape

      • Optionalaxis: number = 0

        The integer insertion axis, from 0 through the common rank inclusive

      Returns ChalkboardTensor

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