|
CSS product code
0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
|
Go to the documentation of this file.
19 #define MM_MAX_LINE_LENGTH 1025
20 #define MatrixMarketBanner "%%MatrixMarket"
21 #define MM_MAX_TOKEN_LENGTH 64
46 #define mm_is_matrix(typecode) ((typecode)[0]=='M')
48 #define mm_is_sparse(typecode) ((typecode)[1]=='C')
49 #define mm_is_coordinate(typecode)((typecode)[1]=='C')
50 #define mm_is_dense(typecode) ((typecode)[1]=='A')
51 #define mm_is_array(typecode) ((typecode)[1]=='A')
53 #define mm_is_complex(typecode) ((typecode)[2]=='C')
54 #define mm_is_real(typecode) ((typecode)[2]=='R')
55 #define mm_is_pattern(typecode) ((typecode)[2]=='P')
56 #define mm_is_integer(typecode) ((typecode)[2]=='I')
58 #define mm_is_symmetric(typecode)((typecode)[3]=='S')
59 #define mm_is_general(typecode) ((typecode)[3]=='G')
60 #define mm_is_skew(typecode) ((typecode)[3]=='K')
61 #define mm_is_hermitian(typecode)((typecode)[3]=='H')
68 #define mm_set_matrix(typecode) ((*typecode)[0]='M')
69 #define mm_set_coordinate(typecode) ((*typecode)[1]='C')
70 #define mm_set_array(typecode) ((*typecode)[1]='A')
71 #define mm_set_dense(typecode) mm_set_array(typecode)
72 #define mm_set_sparse(typecode) mm_set_coordinate(typecode)
74 #define mm_set_complex(typecode)((*typecode)[2]='C')
75 #define mm_set_real(typecode) ((*typecode)[2]='R')
76 #define mm_set_pattern(typecode)((*typecode)[2]='P')
77 #define mm_set_integer(typecode)((*typecode)[2]='I')
80 #define mm_set_symmetric(typecode)((*typecode)[3]='S')
81 #define mm_set_general(typecode)((*typecode)[3]='G')
82 #define mm_set_skew(typecode) ((*typecode)[3]='K')
83 #define mm_set_hermitian(typecode)((*typecode)[3]='H')
85 #define mm_clear_typecode(typecode) ((*typecode)[0]=(*typecode)[1]= \
86 (*typecode)[2]=' ',(*typecode)[3]='G')
88 #define mm_initialize_typecode(typecode) mm_clear_typecode(typecode)
94 #define MM_COULD_NOT_READ_FILE 11
95 #define MM_PREMATURE_EOF 12
97 #define MM_NO_HEADER 14
98 #define MM_UNSUPPORTED_TYPE 15
99 #define MM_LINE_TOO_LONG 16
100 #define MM_COULD_NOT_WRITE_FILE 17
119 #define MM_MTX_STR "matrix"
120 #define MM_ARRAY_STR "array"
121 #define MM_DENSE_STR "array"
122 #define MM_COORDINATE_STR "coordinate"
123 #define MM_SPARSE_STR "coordinate"
124 #define MM_COMPLEX_STR "complex"
125 #define MM_REAL_STR "real"
126 #define MM_INT_STR "integer"
127 #define MM_GENERAL_STR "general"
128 #define MM_SYMM_STR "symmetric"
129 #define MM_HERM_STR "hermitian"
130 #define MM_SKEW_STR "skew-symmetric"
131 #define MM_PATTERN_STR "pattern"
int mm_read_mtx_crd_size(FILE *f, int *M, int *N, int *nz)
int mm_write_mtx_array_size(FILE *f, int M, int N)
char * mm_typecode_to_str(MM_typecode matcode)
int mm_read_mtx_crd_data(FILE *f, int M, int N, int nz, int I[], int J[], double val[], MM_typecode matcode)
int mm_read_mtx_crd_entry(FILE *f, int *I, int *J, double *real, double *img, MM_typecode matcode)
int mm_read_banner(FILE *f, MM_typecode *matcode)
int mm_write_banner(FILE *f, MM_typecode matcode)
int mm_read_mtx_array_size(FILE *f, int *M, int *N)
int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[], double val[], MM_typecode matcode)
int mm_is_valid(MM_typecode matcode)
int mm_write_mtx_crd_size(FILE *f, int M, int N, int nz)