| 116 | |
| 117 | |
| 118 | dReal dMaxDifference (const dReal *A, const dReal *B, int n, int m) |
| 119 | { |
| 120 | int i,j; |
| 121 | int skip = dPAD(m); |
| 122 | dReal diff,max; |
| 123 | max = 0; |
| 124 | for (i=0; i<n; i++) { |
| 125 | for (j=0; j<m; j++) { |
| 126 | diff = dFabs(A[i*skip+j] - B[i*skip+j]); |
| 127 | if (diff > max) max = diff; |
| 128 | } |
| 129 | } |
| 130 | return max; |
| 131 | } |
| 132 | |
| 133 | |
| 134 | dReal dMaxDifferenceLowerTriangle (const dReal *A, const dReal *B, int n) |
no outgoing calls