Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
mmio.c File Reference
#include <cgraph/startswith.h>
#include <cgraph/strcasecmp.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include "mmio.h"
Include dependency graph for mmio.c:

Go to the source code of this file.

Functions

int mm_read_banner (FILE *f, MM_typecode *matcode)
 
int mm_read_mtx_crd_size (FILE *f, int *M, int *N, int *nz)
 

Function Documentation

◆ mm_read_banner()

int mm_read_banner ( FILE *  f,
MM_typecode matcode 
)

Definition at line 28 of file mmio.c.

References MatrixMarketBanner, mm_clear_typecode, MM_COMPLEX_STR, MM_DENSE_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_set_complex, mm_set_dense, mm_set_general, mm_set_hermitian, mm_set_integer, mm_set_matrix, mm_set_pattern, mm_set_real, mm_set_skew, mm_set_sparse, mm_set_symmetric, MM_SKEW_STR, MM_SPARSE_STR, MM_SYMM_STR, MM_UNSUPPORTED_TYPE, NULL, and startswith().

Referenced by SparseMatrix_import_matrix_market().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mm_read_mtx_crd_size()

int mm_read_mtx_crd_size ( FILE *  f,
int *  M,
int *  N,
int *  nz 
)

Definition at line 100 of file mmio.c.

References M, MM_MAX_LINE_LENGTH, MM_PREMATURE_EOF, N, and NULL.

Referenced by SparseMatrix_import_matrix_market().

Here is the caller graph for this function: