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

Function project_d

cmp_framework/common/hdr_encode.cpp:1320–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320void project_d(float data[][MAX_DIMENSION_BIG], int numEntries, float vector[MAX_DIMENSION_BIG], float projection[MAX_ENTRIES], int dimension) {
1321 // assume that vector is normalized already
1322 int i, k;
1323
1324 for (k = 0; k<numEntries; k++) {
1325 projection[k] = 0;
1326 for (i = 0; i<dimension; i++) {
1327 projection[k] += data[k][i] * vector[i];
1328 }
1329 }
1330}
1331
1332typedef struct {
1333 float d;

Callers 1

optQuantAnD_dFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected