public boolean eq ( final Matrix B ) { final Matrix A = this ; if ( ( B . m_rows != A . m_rows ) || ( B . m_columns != A . m_columns ) ) { return false ; } for ( int i = 0 ; i < m_rows ; i ++ ) { for ( int j = 0 ; j < m_columns ; j ++ ) { if ( A . m_data [ i ] [ j ] != B . m_data [ i ] [ j ] ) { return false ; } } } return true ; }
Returns whether the matrix is the same as this matrix .