MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / maxDifference

Method maxDifference

3rd_party/Src/ode/ode/src/mat.cpp:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219dReal dMatrix::maxDifference (const dMatrix &a)
220{
221 if (n != a.n || m != a.m) dDebug (0,"maxDifference(), mismatched sizes");
222 dReal max = 0;
223 for (int i=0; i<n; i++) {
224 for (int j=0; j<m; j++) {
225 dReal diff = dFabs(data[i*m+j] - a.data[i*m+j]);
226 if (diff > max) max = diff;
227 }
228 }
229 return max;
230}

Callers 1

checkFactorizationFunction · 0.80

Calls 1

dDebugFunction · 0.85

Tested by

no test coverage detected