Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
mmio.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sparse/SparseMatrix.h>
#include <util/startswith.h>
#include <util/strcasecmp.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 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().

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 92 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: