MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / mm_write_banner

Function mm_write_banner

test/mmio/mmio.c:320–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320int mm_write_banner(FILE *f, MM_typecode matcode) {
321 char *str = mm_typecode_to_str(matcode);
322 int ret_code;
323
324 ret_code = fprintf(f, "%s %s\n", MatrixMarketBanner, str);
325 free(str);
326 if (ret_code != 2)
327 return MM_COULD_NOT_WRITE_FILE;
328 else
329 return 0;
330}
331
332int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[],
333 double val[], MM_typecode matcode) {

Callers

nothing calls this directly

Calls 2

mm_typecode_to_strFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected