Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isMonge() throws NullPointerException {
- int i,j,k,l;
- for(i=0;i<dim-1;i++){
- for(j=0;j<dim-1;j++){
- for(k=i+1;k<dim;k++){
- for(l=j+1;l<dim;l++){
- if(Math.min(getValueOf(lowerMatrix, i, j), getValueOf(lowerMatrix, k, l))
- > Math.min(getValueOf(lowerMatrix, i, l), getValueOf(lowerMatrix, k, j))
- || Math.min(getValueOf(upperMatrix, i, j), getValueOf(upperMatrix, k, l))
- > Math.min(getValueOf(upperMatrix, i, l), getValueOf(upperMatrix, k, j))){
- return false;
- }
- }
- }
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement