Learn R Programming

matlib (version 0.6.0)

rowswap: Interchange two rows of a matrix

Description

This elementary row operation corresponds to interchanging two equations.

Usage

rowswap(x, from, to)

Arguments

x
a matrix, often consisting of the coeficient matrix, A, joined with a vector of constants, b.
from
source row.
to
destination row

Value

  • the matrix x, with rows from and to interchanged

See Also

echelon, gaussianElimination Other elementary row operations: rowadd, rowmult