SubmatrixByRemoval
Obtains a submatrix by removing a particular row and column.
Syntax
-
SubmatrixByRemoval(A, i, j)
-
A
is a matrix -
i
andj
are positive integers
-
Description
If A
is a matrix, i
a valid row index of A
, and j
a valid column index of A
, then SubmatrixByRemoval(A, i, j)
returns the submatrix obtained from A
by removing the i
th row and the j
th column from it.
Examples
A ≔ ❨❨4, 1, 2, 3❩, ❨6, 1, 2, 3❩, ❨7, 6, 5, 0❩, ❨1, 2, 1, 6❩❩
⎛4 1 2 3⎞ ⎜6 1 2 3⎟ ⎜7 6 5 0⎟ ⎝1 2 1 6⎠
SubmatrixByRemoval(A, 3, 3)
⎛4 1 3⎞ ⎜6 1 3⎟ ⎝1 2 6⎠