MCPcopy Create free account
hub / github.com/audeering/opensmile / vectorFloatAdd

Function vectorFloatAdd

scripts/modeltrain/arff-standardize.c:172–181  ·  view source on GitHub ↗

add vector b onto vector a

Source from the content-addressed store, hash-verified

170
171// add vector b onto vector a
172void vectorFloatAdd(vectorFloat a, vectorFloat b)
173{
174 if ((a!= NULL)&&(a->x != NULL)&&(b!= NULL)&&(b->x != NULL)) {
175 long i;
176 long lng = minLong(a->dim, b->dim);
177 for (i=0; i<lng; i++) {
178 a->x[i] += b->x[i];
179 }
180 }
181}
182
183// subtract vector b from vector a
184void vectorFloatSub(vectorFloat a, vectorFloat b)

Callers 1

columnSumFunction · 0.85

Calls 1

minLongFunction · 0.85

Tested by

no test coverage detected