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

Function mm_is_valid

test/mmio/mmio.c:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int mm_is_valid(MM_typecode matcode) {
78 if (!mm_is_matrix(matcode)) return 0;
79 if (mm_is_dense(matcode) && mm_is_pattern(matcode)) return 0;
80 if (mm_is_real(matcode) && mm_is_hermitian(matcode)) return 0;
81 if (mm_is_pattern(matcode) &&
82 (mm_is_hermitian(matcode) || mm_is_skew(matcode)))
83 return 0;
84 return 1;
85}
86
87int mm_read_banner(FILE *f, MM_typecode *matcode) {
88 char line[MM_MAX_LINE_LENGTH];

Callers 1

mm_read_mtx_crdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected