Converts a vector to a matrix.
// Returns a 3×1 column matrix containing [2, 3, 4]const m = Chalkboard.vect.toMatrix(Chalkboard.vect.init(2, 3, 4)); Copy
// Returns a 3×1 column matrix containing [2, 3, 4]const m = Chalkboard.vect.toMatrix(Chalkboard.vect.init(2, 3, 4));
The vector
Optional
The axis of the matrix to convert to, which can be 0 for a column matrix or 1 for a row matrix
Converts a vector to a matrix.
Example