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

Function dMaxDifference

3rd_party/Src/ode/ode/src/misc.cpp:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117
118dReal 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
134dReal dMaxDifferenceLowerTriangle (const dReal *A, const dReal *B, int n)

Callers 2

dTestSolveLCPFunction · 0.85
nextMatrixMethod · 0.85

Calls

no outgoing calls

Tested by 1

nextMatrixMethod · 0.68