src/Alg/Math/Algebra/GaussElimination.php
protected function findPivotRow( $matrix, $column, $row = 0 )
	{
		$r	= $row;
		$a	= abs( $matrix->getValue( $row, $column ) );
		for( $i=$row+1; $i<$matrix->getRowNumber(); $i++ )
		{
			if( abs( $matrix->getValue( $i, $column ) ) > $a )
			{
				$a	= abs( $matrix->getValue( $i, $column ) );
				$r	= $i;
			}
		}
		return $r;
	}
protected function findPivotRow( $matrix, $column, $row = 0 )
	{
		$r	= $row;
		$a	= abs( $matrix->getValue( $row, $column ) );
		for( $i=$row+1; $i<$matrix->getRowNumber(); $i++ )
		{
			if( abs( $matrix->getValue( $i, $column ) ) > $a )
			{
				$a	= abs( $matrix->getValue( $i, $column ) );
				$r	= $i;
			}
		}
		return $r;
	}
protected function findPivotRow ( $ matrix , $ column , $ row = 0 ) { $ r = $ row ; $ a = abs ( $ matrix -> getValue ( $ row , $ column ) ) ; for ( $ i = $ row + 1 ; $ i < $ matrix -> getRowNumber ( ) ; $ i ++ ) { if ( abs ( $ matrix -> getValue ( $ i , $ column ) ) > $ a ) { $ a = abs ( $ matrix -> getValue ( $ i , $ column ) ) ; $ r = $ i ; } } return $ r ; }
Returns the advices Privot Row within a Matrix.
@access		protected
@param		Alg_Math_Algebra_Matrix		$matrix		Matrix to eliminate
@param		int						$column		current Column
@param		int						$row		Row to start Search
@return		int
Returns the advices Privot Row within a Matrix .