Algosim documentation: lessen

lessen

Returns a matrix with its rightmost column removed.

Syntax

Description

If A is a matrix with at least two columns, then lessen(A) returns the matrix obtained from A by removing the rightmost column from it.

(If an lvalue, A is not altered.)

Examples

A ≔ ❨❨2, 2, −5, 0, −1❩, ❨1, 5, −2, 1, 5❩, ❨0, 1, 3, 2, 6❩, ❨−2, 1, 4, 6, 9❩, ❨3, −2, 7, −2, 6❩❩
⎛ 2   2  −5   0  −1⎞
⎜ 1   5  −2   1   5⎟
⎜ 0   1   3   2   6⎟
⎜−2   1   4   6   9⎟
⎝ 3  −2   7  −2   6⎠
B ≔ lessen(A)
⎛ 2   2  −5   0⎞
⎜ 1   5  −2   1⎟
⎜ 0   1   3   2⎟
⎜−2   1   4   6⎟
⎝ 3  −2   7  −2⎠
rank(A) = rank(B)
true

See also