| 50 | } |
| 51 | |
| 52 | void dump_float(const char* fname, float* data, int number) |
| 53 | { |
| 54 | FILE* fp = fopen(fname, "w"); |
| 55 | |
| 56 | for(int i = 0; i < number; i++) |
| 57 | fprintf(fp, " %f\n", data[i]); |
| 58 | |
| 59 | fclose(fp); |
| 60 | } |
| 61 | |
| 62 | int test_graph(graph_t graph, const char* dump_file, const float means[], const float scale) |
| 63 | { |