Graphviz 13.0.0~dev.20241220.2304
|
Matrix Market I/O API More...
Go to the source code of this file.
Data Structures | |
struct | MM_typecode |
Macros | |
#define | MM_MAX_LINE_LENGTH 100025 |
#define | MatrixMarketBanner "%%MatrixMarket" |
#define | MM_MAX_TOKEN_LENGTH 64 |
#define | MM_COULD_NOT_READ_FILE 11 |
#define | MM_PREMATURE_EOF 12 |
#define | MM_NOT_MTX 13 |
#define | MM_NO_HEADER 14 |
#define | MM_UNSUPPORTED_TYPE 15 |
#define | MM_LINE_TOO_LONG 16 |
#define | MM_MTX_STR "matrix" |
#define | MM_COORDINATE_STR "coordinate" |
#define | MM_SPARSE_STR "coordinate" |
#define | MM_COMPLEX_STR "complex" |
#define | MM_REAL_STR "real" |
#define | MM_INT_STR "integer" |
#define | MM_GENERAL_STR "general" |
#define | MM_SYMM_STR "symmetric" |
#define | MM_HERM_STR "hermitian" |
#define | MM_SKEW_STR "skew-symmetric" |
#define | MM_PATTERN_STR "pattern" |
Enumerations | |
enum | matrix_shape_t { MS_GENERAL , MS_SYMMETRIC , MS_HERMITIAN , MS_SKEW } |
Functions | |
int | mm_read_banner (FILE *f, MM_typecode *matcode) |
int | mm_read_mtx_crd_size (FILE *f, int *M, int *N, int *nz) |
enum matrix_shape_t |
int mm_read_banner | ( | FILE * | f, |
MM_typecode * | matcode | ||
) |
Definition at line 28 of file mmio.c.
References MATRIX_TYPE_COMPLEX, MATRIX_TYPE_INTEGER, MATRIX_TYPE_PATTERN, MATRIX_TYPE_REAL, MatrixMarketBanner, MM_COMPLEX_STR, MM_GENERAL_STR, MM_HERM_STR, MM_INT_STR, MM_MAX_LINE_LENGTH, MM_MAX_TOKEN_LENGTH, MM_MTX_STR, MM_NO_HEADER, MM_PATTERN_STR, MM_PREMATURE_EOF, MM_REAL_STR, MM_SKEW_STR, MM_SPARSE_STR, MM_SYMM_STR, MM_UNSUPPORTED_TYPE, MS_GENERAL, MS_HERMITIAN, MS_SKEW, MS_SYMMETRIC, NULL, MM_typecode::shape, startswith(), and MM_typecode::type.
Referenced by SparseMatrix_import_matrix_market().
int mm_read_mtx_crd_size | ( | FILE * | f, |
int * | M, | ||
int * | N, | ||
int * | nz | ||
) |
Definition at line 92 of file mmio.c.
References M, MM_MAX_LINE_LENGTH, MM_PREMATURE_EOF, N, and NULL.
Referenced by SparseMatrix_import_matrix_market().