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

Function vectorFloatToVectorDouble

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

Source from the content-addressed store, hash-verified

257}
258
259vectorDouble vectorFloatToVectorDouble(vectorFloat a)
260{
261 if ((a!= NULL)&&(a->x != NULL)) {
262 long i;
263 vectorDouble d = vectorDoubleCreate(a->dim);
264 if (d==NULL) return NULL;
265 for (i=0; i<a->dim; i++) {
266 d->x[i] = (double)(a->x[i]);
267 }
268 return d;
269 }
270 return NULL;
271}
272
273vectorFloat vectorDoubleToVectorFloat(vectorDouble a)
274{

Callers 1

columnVarianceSumFunction · 0.85

Calls 1

vectorDoubleCreateFunction · 0.85

Tested by

no test coverage detected