Algosim documentation: MatFromCols

MatFromCols

Creates a matrix by specifying its columns.

Syntax

Description

If a, b, ... is a list of vectors of the same dimension, then MatFromCols(a, b, ...) returns the matrix having these vectors as its columns.

Examples

MatFromCols(❨4, 1, 2, 3❩, ❨6, 4, 1, 0❩, ❨3, 5, 0, 1❩)
⎛4  6  3⎞
⎜1  4  5⎟
⎜2  1  0⎟
⎝3  0  1⎠

See also