Wilang Documentation1.0.0+4

matrixFromRows#

Create a dense matrix from vectors as individual rows.

Available in: math cells, REPL.

Syntax#

matrixFromRows(...arr)
matrixFromRows(row1, row2)
matrixFromRows(row1, row2, row3)

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
matrixFromRows([1,2],[3,4])

Expected result: matrix.

See also#

matrix · matrixFromColumns · matrixFromFunction · zeros

All functions · Math guides