Home
last modified time | relevance | path

Searched refs:matcode (Results 1 – 4 of 4) sorted by relevance

/petsc/src/mat/tests/
H A Dmmio.c19 MM_typecode matcode; in mm_read_unsymmetric_sparse() local
27 if (mm_read_banner(f, &matcode) != 0) { in mm_read_unsymmetric_sparse()
33 if (!(mm_is_real(matcode) && mm_is_matrix(matcode) && mm_is_sparse(matcode))) { in mm_read_unsymmetric_sparse()
35 fprintf(stderr, "Market Market type: [%s]\n", mm_typecode_to_str(matcode)); in mm_read_unsymmetric_sparse()
77 int mm_is_valid(MM_typecode matcode) in mm_is_valid() argument
79 if (!mm_is_matrix(matcode)) return 0; in mm_is_valid()
80 if (mm_is_dense(matcode) && mm_is_pattern(matcode)) return 0; in mm_is_valid()
81 if (mm_is_real(matcode) && mm_is_hermitian(matcode)) return 0; in mm_is_valid()
82 if (mm_is_pattern(matcode) && (mm_is_hermitian(matcode) || mm_is_skew(matcode))) return 0; in mm_is_valid()
86 int mm_read_banner(FILE *f, MM_typecode *matcode) in mm_read_banner() argument
[all …]
H A Dmmloader.c5 MM_typecode matcode; in MatCreateFromMTX() local
16 …PetscCheck(mm_read_banner(file, &matcode) == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Could not p… in MatCreateFromMTX()
19matcode) && mm_is_sparse(matcode) && (mm_is_real(matcode) || mm_is_integer(matcode)), PETSC_COMM_S… in MatCreateFromMTX()
21 if (mm_is_symmetric(matcode)) symmetric = PETSC_TRUE; in MatCreateFromMTX()
22 if (mm_is_skew(matcode)) skew = PETSC_TRUE; in MatCreateFromMTX()
H A Dmmio.h18 char *mm_typecode_to_str(MM_typecode matcode);
20 int mm_read_banner(FILE *f, MM_typecode *matcode);
24 int mm_write_banner(FILE *f, MM_typecode matcode);
47 int mm_is_valid(MM_typecode matcode); /* too complex for a macro */
113 …mtx_crd(char fname[], int M, int N, int nz, int I_[], int J_[], double val[], MM_typecode matcode);
114 …mtx_crd_data(FILE *f, int M, int N, int nz, int I_[], int J_[], double val[], MM_typecode matcode);
115 int mm_read_mtx_crd_entry(FILE *f, int *I_, int *J_, double *real, double *img, MM_typecode matcode
H A Dex72.c27 MM_typecode matcode; in main() local
57 PetscCallExternal(mm_read_banner, file, &matcode); in main()
58 if (mm_is_symmetric(matcode)) symmetric = PETSC_TRUE; in main()
59 if (mm_is_skew(matcode)) skew = PETSC_TRUE; in main()
60 PetscCallExternal(mm_write_banner, stdout, matcode); in main()