MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / totalError_d

Function totalError_d

cmp_framework/common/hdr_encode.cpp:1356–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354};
1355
1356float totalError_d(float data[MAX_ENTRIES][MAX_DIMENSION_BIG], float data2[MAX_ENTRIES][MAX_DIMENSION_BIG], int numEntries, int dimension) {
1357 int i, j;
1358 float t = 0;
1359 for (i = 0; i<numEntries; i++)
1360 for (j = 0; j<dimension; j++)
1361 t += (data[i][j] - data2[i][j])*(data[i][j] - data2[i][j]);
1362
1363 return t;
1364};
1365
1366// input:
1367//

Callers 3

optQuantAnD_dFunction · 0.70
ep_shaker_HDFunction · 0.70
ep_shaker_2_dFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected