function test0766 ( ) %*****************************************************************************80 % %% TEST0766 tests R8MAT_RREF. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 02 October 2008 % % Author: % % John Burkardt % m = 4; n = 7; a = [ ... 1.0, -2.0, 3.0, -1.0; ... 3.0, -6.0, 9.0, -3.0; ... 0.0, 0.0, 0.0, 0.0; ... 2.0, -2.0, 0.0, 1.0; ... 6.0, -8.0, 6.0, 0.0; ... 3.0, 3.0, 6.0, 9.0; ... 1.0, 1.0, 2.0, 3.0 ]'; fprintf ( 1, '\n' ); fprintf ( 1, 'TEST0766\n' ); fprintf ( 1, ' R8MAT_RREF computes the reduced row echelon form of a matrix.\n' ); r8mat_print ( m, n, a, ' Input A:' ); a = r8mat_rref ( m, n, a ); r8mat_print ( m, n, a, ' RREF form:' ); return end