Algosim documentation: rows

rows

Returns the rows of a matrix as a list of vectors.

Syntax

Description

If A is a matrix, then rows(A) is the list of rows of A, each row being represented by a vector.

Examples

A ≔ ❨❨2, 1, −i❩, ❨1, 0, 2❩, ❨4, i, 2❩, ❨0, 1, −1❩❩
⎛ 2   1  −i⎞
⎜ 1   0   2⎟
⎜ 4   i   2⎟
⎝ 0   1  −1⎠
rows(A)
(2, 1, −i)
(1, 0, 2)
(4, i, 2)
(0, 1, −1)

See also