question: public static void assertEquals ( FieldMatrix < ? extends FieldElement < ? > > expected , FieldMatrix < ? extends FieldElement < ? > > observed ) { Assert . assertNotNull ( "Observed should not be null" , observed ) ; if ( expected . getColumnDimension ( ) != observed . getColumnDimension ( ) || expected . getRowDimension ( ) != observed . getRowDimension ( ) ) { StringBuilder messageBuffer = new StringBuilder ( ) ; messageBuffer . append ( "Observed has incorrect dimensions." ) ; messageBuffer . append ( "\nobserved is " + observed . getRowDimension ( ) + " x " + observed . getColumnDimension ( ) ) ; messageBuffer . append ( "\nexpected " + expected . getRowDimension ( ) + " x " + expected . getColumnDimension ( ) ) ; Assert . fail ( messageBuffer . toString ( ) ) ; } for ( int i = 0 ; i < expected . getRowDimension ( ) ; ++ i ) { for ( int j = 0 ; j < expected . getColumnDimension ( ) ; ++ j ) { FieldElement < ? > eij = expected . getEntry ( i , j ) ; FieldElement < ? > oij = observed . getEntry ( i , j ) ; Assert . assertEquals ( eij , oij ) ; } } }
target:  verifies that two matrices are equal 