Converting Matrix to reduced row echelon form ( diagonal matrix )
float pro = a [ j ] [ i ] / a [ i ] [ i ] ; for ( k = 0 ; k <= n ; k ++ ) a [ j ] [ k ] = a [ j ] [ k ] - ( a [ i ] [ k ] ) * pro ; } } } return flag ; }