M4RI  20140914
io.h
Go to the documentation of this file.
1 
8 #ifndef M4RI_IO_H
9 #define M4RI_IO_H
10 
11 /*******************************************************************
12 *
13 * M4RI: Linear Algebra over GF(2)
14 *
15 * Copyright (C) 2011 Martin Albrecht <martinralbrecht@googlemail.com>
16 *
17 * Distributed under the terms of the GNU General Public License (GPL)
18 * version 2 or higher.
19 *
20 * This code is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * General Public License for more details.
24 *
25 * The full text of the GPL is available at:
26 *
27 * http://www.gnu.org/licenses/
28 *
29 ********************************************************************/
30 
31 #include <m4ri/m4ri_config.h>
32 #include <m4ri/mzd.h>
33 
42 void mzd_print(mzd_t const *M);
43 
53 void mzd_print_row(mzd_t const *M, const rci_t i);
54 
64 void mzd_info(const mzd_t *A, int do_rank);
65 
66 #if __M4RI_HAVE_LIBPNG
67 
78 mzd_t * mzd_from_png(const char *fn, int verbose);
79 
104 int mzd_to_png(const mzd_t *A, const char *fn, int compression_level, const char *comment, int verbose);
105 
106 #endif //__M4RI_HAVE_LIBPNG
107 
108 
147 mzd_t *mzd_from_jcf(const char *fn, int verbose);
148 
167 mzd_t *mzd_from_str(rci_t m, rci_t n, const char *str);
168 
169 #endif //M4RI_IO_H
mzd_t * mzd_from_str(rci_t m, rci_t n, const char *str)
Create matrix from dense ASCII string.
Definition: io.c:388
Dense matrices over GF(2).
Definition: mzd.h:86
int rci_t
Type of row and column indexes.
Definition: misc.h:72
void mzd_print(mzd_t const *M)
Print a matrix to stdout.
Definition: io.c:48
void mzd_info(const mzd_t *A, int do_rank)
Print compact information about the matrix to stdout.
Definition: io.c:35
void mzd_print_row(mzd_t const *M, const rci_t i)
Print row i of M to stdout.
Definition: io.c:71
mzd_t * mzd_from_jcf(const char *fn, int verbose)
Read matrix from ASCII file in JCF format.
Definition: io.c:330