Chalkboard - v3.0.1
    Preparing search index...

    Function toMatrix

    • Converts a vector to a matrix.

      Parameters

      • vect: ChalkboardVector

        The vector

      • Optionalaxis: 0 | 1 = 0

        The axis of the matrix to convert to, which can be 0 for a column matrix or 1 for a row matrix

      Returns ChalkboardMatrix

      // Returns a 3×1 column matrix containing [2, 3, 4]
      const m = Chalkboard.vect.toMatrix(Chalkboard.vect.init(2, 3, 4));