C program for marix

Discussion in 'Programmer's Corner' started by Pandy, Nov 29, 2005.

  1. Pandy

    Thread Starter New Member

    Nov 24, 2005

    Can somone some hint to write a computer program to put a matrix into echelom form.
  2. haditya

    Senior Member

    Jan 19, 2004
    that should be relatively easy..u check for a11 to be no zero..if yes then make it one and reduce all elements below it to zero...if a11 is zero then interchange a1 row with some row havin non zero 1st element.. and carry out the operation on the new matrix...
    the same can be repeated for other rows where u chk for a[j][k] ,k> the k of the preceeding row to be non zero and all element in that column belo row to be zero
    recursion shud make your job easy