|
|
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (July 2010) |
In linear algebra a matrix is in row echelon form if
This is an example of 3×4 matrix in row echelon form:
![\left[ \begin{array}{ccc|c}
1 & a_1 & a_2 & a_3 \\
0 & 2 & a_4 & a_5 \\
0 & 0 & -1 & a_6
\end{array} \right]](http://wpcontent.answcdn.com/wikipedia/en/math/2/8/6/286b9509daf65f38dd6941264818d4c1.png)
A matrix is in reduced row echelon form (also called row canonical form) if it satisfies the additional condition:
![\left[ \begin{array}{ccc|c}
1 & 0 & 0 & b_1 \\
0 & 1 & 0 & b_2 \\
0 & 0 & 1 & b_3
\end{array} \right]](http://wpcontent.answcdn.com/wikipedia/en/math/7/6/5/7653422fec1b6c72062d48b26bcbac1f.png)
Note that this does not always mean that the left of the matrix will be an identity matrix. For example, the following matrix is also in reduced row-echelon form:
![\left[ \begin{array}{cccc|c}
1 & 0 & 1/2 & 0 & b_1 \\
0 & 1 & -1/3 & 0 & b_2 \\
0 & 0 & 0 & 1 & b_3
\end{array} \right]](http://wpcontent.answcdn.com/wikipedia/en/math/8/0/4/804fb051c7d181871aaea73968f6d265.png)
|
Contents
|
By means of a finite sequence of elementary row operations, any matrix can be transformed to row echelon form. Since elementary row operations preserve the row space of the matrix, the row space of the row echelon form is the same as that of the original matrix.
The resulting echelon form is not unique; for example, any multiple of a matrix in echelon form is also in echelon form. However, it is the case that every matrix has a unique reduced row echelon form. This means that the nonzero rows of the reduced row echelon form are the unique reduced row echelon generating set for the row space of the original matrix.
A system of linear equations is said to be in row echelon form if its augmented matrix is in row echelon form. Similarly, a system of equations is said to be in reduced row echelon form or canonical form if its augmented matrix is in reduced row echelon form.
|
|
This section may contain original research. Please improve it by verifying the claims made and adding references. Statements consisting only of original research may be removed. More details may be available on the talk page. (September 2011) |
The following pseudocode converts a matrix to (non-reduced) row-echelon form[citation needed]:
function ToRowEchelonForm(Matrix M) is
nr := number of rows in M
nc := number of columns in M
for 0 ≤ r < nr do
allZeros := true
for 0 ≤ c < nc do
if M[r, c] != 0 then
allZeros := false
exit for
end if
end for
if allZeros = true then
In M, swap row r with row nr - 1
nr := nr - 1
end if
end for
p := 0
while p < nr and p < nc do
label nextPivot:
r := 1
while M[p, p] = 0 do
if (p + r) <= nr then
p := p + 1
goto nextPivot
end if
In M, swap row p with row (p + r) <-- bug. nr < p+r at this point
r := r + 1
end while
for 1 ≤ r < (nr - p) do
if M[p + r, p] != 0 then
x := -M[p + r, p] / M[p, p]
for p ≤ c < nc do
M[p + r, c] := M[p, c] * x + M[p + r, c]
end for
end if
end for
p := p + 1
end while
end function
| The Wikibook Linear Algebra has a page on the topic of |
|
||||||||||||||
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)