MCPcopy Create free account
hub / github.com/NanoComp/meep / equal_float

Function equal_float

tests/array-metadata.cpp:57–61  ·  view source on GitHub ↗

/ / /

Source from the content-addressed store, hash-verified

55/***************************************************************/
56/***************************************************************/
57bool equal_float(double *array1, double *array2, int N) {
58 for (int n = 0; n < N; n++)
59 if (((float)array1[n]) != ((float)array2[n])) return false;
60 return true;
61}
62
63/***************************************************************/
64/* check that the coordinates and weights computed from the */

Callers 1

LOOP_OVER_IVECSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected