diff --git a/annotated.html b/annotated.html index 7ee4d61..55f4851 100644 --- a/annotated.html +++ b/annotated.html @@ -78,7 +78,8 @@
Ccsr_t | |
Cint_pair | |
Cparams_t | |
CONE_VEC_T | Distance of a classical or quantum CSS code |
Cparams_t |
Definition at line 115 of file util_m4ri.h.
+Definition at line 112 of file util_m4ri.h.
Definition at line 115 of file util_m4ri.h.
+Definition at line 112 of file util_m4ri.h.
-Referenced by csr_compress().
+Referenced by csr_compress().
Definition at line 115 of file util_m4ri.h.
+Definition at line 112 of file util_m4ri.h.
-Referenced by csr_compress().
+Referenced by csr_compress().
diff --git a/structparams__t-members.html b/structparams__t-members.html index c48502d..d44f244 100644 --- a/structparams__t-members.html +++ b/structparams__t-members.html @@ -87,19 +87,19 @@dist_m4ri.h
as static const int
*/ More...util_io.h
as static const int
*/ More...Definition at line 25 of file util_io.h.
+Definition at line 27 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -177,9 +177,9 @@Definition at line 26 of file util_io.h.
+Definition at line 28 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -195,9 +195,9 @@Definition at line 24 of file util_io.h.
+Definition at line 26 of file util_io.h.
-Referenced by mzd_generator_from_csr(), and var_init().
+Referenced by mzd_generator_from_csr(), and var_init().
@@ -213,7 +213,7 @@Definition at line 32 of file util_io.h.
+Definition at line 34 of file util_io.h.
@@ -229,7 +229,7 @@Definition at line 33 of file util_io.h.
+Definition at line 35 of file util_io.h.
@@ -245,7 +245,7 @@Definition at line 34 of file util_io.h.
+Definition at line 36 of file util_io.h.
@@ -261,9 +261,9 @@Definition at line 47 of file util_io.h.
+Definition at line 49 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -279,9 +279,9 @@Definition at line 45 of file util_io.h.
+Definition at line 47 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -297,9 +297,9 @@Definition at line 44 of file util_io.h.
+Definition at line 46 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -315,25 +315,43 @@Definition at line 46 of file util_io.h.
+Definition at line 48 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
- -int params_t::max_row_wgt_G | +int params_t::max_col_wgt_H |
int params_t::max_row_wgt_H | +
Definition at line 37 of file util_io.h.
+ +Referenced by var_init().
Definition at line 43 of file util_io.h.
+Definition at line 45 of file util_io.h.
@@ -365,9 +383,9 @@Definition at line 27 of file util_io.h.
+Definition at line 29 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -383,9 +401,9 @@Definition at line 39 of file util_io.h.
+Definition at line 42 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -401,9 +419,9 @@Definition at line 41 of file util_io.h.
+Definition at line 44 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -419,9 +437,9 @@Definition at line 40 of file util_io.h.
+Definition at line 43 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -437,9 +455,9 @@Definition at line 31 of file util_io.h.
+Definition at line 33 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -455,9 +473,9 @@Definition at line 49 of file util_io.h.
+Definition at line 51 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -473,9 +491,9 @@Definition at line 48 of file util_io.h.
+Definition at line 50 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -491,9 +509,9 @@Definition at line 50 of file util_io.h.
+Definition at line 52 of file util_io.h.
-Referenced by var_init(), and var_kill().
+Referenced by var_init(), and var_kill().
@@ -509,11 +527,11 @@int maxrow; /* WARNING: this is defined in dist_m4ri.h
as static const int
*/
int max_row_wt; /* WARNING: this is defined in util_io.h
as static const int
*/
Definition at line 37 of file util_io.h.
+Definition at line 40 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -529,25 +547,9 @@Definition at line 28 of file util_io.h.
- -Referenced by var_init().
- - - - -int params_t::swait | -
Definition at line 30 of file util_io.h.
-Definition at line 42 of file util_io.h.
+Referenced by var_init().
Definition at line 29 of file util_io.h.
+Definition at line 31 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
@@ -581,9 +583,9 @@Definition at line 30 of file util_io.h.
+Definition at line 32 of file util_io.h.
-Referenced by var_init().
+Referenced by var_init().
diff --git a/util__io_8c.html b/util__io_8c.html index fbea450..d09c466 100644 --- a/util__io_8c.html +++ b/util__io_8c.html @@ -81,13 +81,15 @@#include "util_io.h"
Definition at line 217 of file util_io.c.
+Definition at line 257 of file util_io.c.
-References csr_free(), params_t::fin, params_t::finG, params_t::finH, p, params_t::spaG, params_t::spaH, and params_t::spaL.
+References csr_free(), params_t::fin, params_t::finG, params_t::finH, p, params_t::spaG, params_t::spaH, and params_t::spaL.
Definition at line 31 of file util_io.c.
+Definition at line 32 of file util_io.c.
-Referenced by addto(), csr_apply_perm(), csr_free(), csr_max_row_wght(), csr_mzd_mul(), csr_out(), csr_transpose(), make_err(), mm_read_banner(), mzd_from_csr(), mzp_out(), perm_p(), perm_p_trans(), syndrome_bit_count(), var_init(), and var_kill().
+Referenced by addto(), csr_apply_perm(), csr_free(), csr_max_row_wght(), csr_mzd_mul(), csr_out(), csr_transpose(), make_err(), mm_read_banner(), mzd_from_csr(), mzp_out(), perm_p(), perm_p_trans(), start_CC_recurs(), syndrome_bit_count(), var_init(), and var_kill().
@@ -226,16 +228,17 @@Functions |
#define BRIEF_HELP "try \"%s -h\" for help" | +
Definition at line 57 of file util_io.h.
+ +Definition at line 62 of file util_io.h.
@@ -258,9 +258,9 @@Definition at line 34 of file util_io.c.
-References params_t::classical, csr_mm_read(), params_t::css, params_t::debug, ERROR, params_t::fin, params_t::finG, params_t::finH, params_t::finL, Lx_for_CSS_code(), params_t::method, params_t::n0, params_t::nchk, params_t::nvar, p, csr_t::rows, params_t::seed, params_t::spaG, params_t::spaH, params_t::spaL, params_t::start, params_t::steps, USAGE, params_t::wmax, and params_t::wmin.
+References BRIEF_HELP, params_t::classical, csr_t::cols, csr_csr_mul_non_zero(), csr_max_row_wght(), csr_mm_read(), csr_print(), params_t::css, params_t::debug, ERROR, params_t::fin, params_t::finG, params_t::finH, params_t::finL, Lx_for_CSS_code(), params_t::max_row_wgt_H, params_t::method, params_t::n0, params_t::nchk, params_t::nvar, p, csr_t::rows, params_t::seed, params_t::spaG, params_t::spaH, params_t::spaL, params_t::start, params_t::steps, USAGE, params_t::wmax, and params_t::wmin.
@@ -280,9 +280,9 @@Definition at line 217 of file util_io.c.
+Definition at line 257 of file util_io.c.
-References csr_free(), params_t::fin, params_t::finG, params_t::finH, p, params_t::spaG, params_t::spaH, and params_t::spaL.
+References csr_free(), params_t::fin, params_t::finG, params_t::finH, p, params_t::spaG, params_t::spaH, and params_t::spaL.
diff --git a/util__io_8h__dep__incl.map b/util__io_8h__dep__incl.map index 4e021ba..40b331c 100644 --- a/util__io_8h__dep__incl.map +++ b/util__io_8h__dep__incl.map @@ -1,5 +1,6 @@ diff --git a/util__io_8h__dep__incl.md5 b/util__io_8h__dep__incl.md5 index 3629a02..f914b3c 100644 --- a/util__io_8h__dep__incl.md5 +++ b/util__io_8h__dep__incl.md5 @@ -1 +1 @@ -0fc22154db8352ef12080514b7afa896 \ No newline at end of file +268314052ce6e4615470b51b230cdac1 \ No newline at end of file diff --git a/util__io_8h__dep__incl.png b/util__io_8h__dep__incl.png index 2650d31..ce9e2e1 100644 Binary files a/util__io_8h__dep__incl.png and b/util__io_8h__dep__incl.png differ diff --git a/util__io_8h_source.html b/util__io_8h_source.html index 6675131..9cd69ae 100644 --- a/util__io_8h_source.html +++ b/util__io_8h_source.html @@ -100,95 +100,119 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -References csr_t::cols, ERROR, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, ERROR, p, csr_t::p, and csr_t::rows.
@@ -237,11 +243,11 @@Permute columns of a CSR matrix with permutation perm.
-Definition at line 583 of file util_m4ri.c.
+Definition at line 634 of file util_m4ri.c.
-References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -263,11 +269,54 @@Definition at line 514 of file util_m4ri.c.
-References int_pair::a, int_pair::b, ERROR, csr_t::i, csr_t::nz, and csr_t::p.
+References int_pair::a, int_pair::b, ERROR, csr_t::i, csr_t::nz, and csr_t::p.
-Referenced by csr_apply_perm(), csr_mm_read(), and csr_transpose().
+Referenced by csr_apply_perm(), csr_mm_read(), and csr_transpose().
+ + + + +int csr_csr_mul_non_zero | +( | +const csr_t *const | +A, | +
+ | + | const csr_t *const | +B | +
+ | ) | ++ |
return 1 if matrix product A*B^T is non-zero
+A | first matrix |
B | second matrix |
Definition at line 311 of file util_m4ri.c.
+ +References csr_t::cols, ERROR, csr_t::nz, csr_t::p, and csr_t::rows.
+ +Referenced by var_init().
kill a CSR matrix
-Definition at line 422 of file util_m4ri.c.
+Definition at line 461 of file util_m4ri.c.
-References p.
+References p.
-Referenced by Lx_for_CSS_code(), and var_kill().
+Referenced by Lx_for_CSS_code(), and var_kill().
@@ -334,11 +383,11 @@Definition at line 735 of file util_m4ri.c.
-References csr_init(), mzd_weight(), csr_t::p, and csr_t::rows.
+References csr_init(), mzd_weight(), csr_t::p, and csr_t::rows.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -382,16 +431,16 @@Definition at line 478 of file util_m4ri.c.
-References csr_t::cols, ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, csr_t::p, and csr_t::rows.
+References csr_t::cols, ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, csr_t::p, and csr_t::rows.
-Referenced by csr_apply_perm(), csr_from_mzd(), csr_mm_read(), and csr_transpose().
+Referenced by csr_apply_perm(), csr_from_mzd(), csr_mm_read(), and csr_transpose().
- -return max row weight of CSR matrix p TODO: add code for List of Pairs
return max row weight of CSR matrix p TODO: add code for List of Pairs
Definition at line 117 of file util_m4ri.c.
-References p.
+References p.
+ +Referenced by do_CC_dist(), and var_init().
read sparse matrix into a (binary) CSR (all entries default to 1) (re)allocate mat if needed use transpose=1 to transpose.
-Definition at line 528 of file util_m4ri.c.
+Definition at line 579 of file util_m4ri.c.
-References csr_compress(), csr_init(), ERROR, csr_t::i, mm_is_general, mm_is_integer, mm_is_matrix, mm_is_sparse, mm_read_banner(), mm_read_mtx_crd_size(), mm_typecode_to_str(), csr_t::nz, and csr_t::p.
+References csr_compress(), csr_init(), ERROR, csr_t::i, mm_is_general, mm_is_integer, mm_is_matrix, mm_is_sparse, mm_read_banner(), mm_read_mtx_crd_size(), mm_typecode_to_str(), csr_t::nz, and csr_t::p.
-Referenced by var_init().
+Referenced by var_init().
@@ -495,7 +548,7 @@References csr_t::cols, ERROR, csr_t::i, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, ERROR, csr_t::i, p, csr_t::p, and csr_t::rows.
@@ -517,14 +570,48 @@Definition at line 540 of file util_m4ri.c.
+ +References csr_t::cols, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+ + + + +void csr_print | +( | +const csr_t *const | +smat, | +
+ | + | const char | +str[] | +
+ | ) | ++ |
Definition at line 562 of file util_m4ri.c.
+ +References mzd_from_csr().
-References csr_t::cols, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+Referenced by do_CC_dist(), and var_init().
References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
-Referenced by do_dist_clus().
+Referenced by do_CC_dist().
@@ -591,7 +678,7 @@Check if row is linearly dependent with the rows of matG0 which is assumed to be in standard form. rankG0 is the number of non-zero rows in rankG0. return: -1 if empty line after simplification otherwise position of the first non-zero bit in the simplified vector
-Definition at line 617 of file util_m4ri.c.
+Definition at line 668 of file util_m4ri.c.
@@ -626,11 +713,11 @@Definition at line 770 of file util_m4ri.c.
-References csr_t::cols, csr_apply_perm(), csr_free(), csr_from_mzd(), ERROR, mzd_from_csr(), mzd_gauss_naive(), mzd_generator_from_csr(), perm_p(), perm_p_trans(), product_weight_csr_mzd(), and csr_t::rows.
+References csr_t::cols, csr_apply_perm(), csr_free(), csr_from_mzd(), ERROR, mzd_from_csr(), mzd_gauss_naive(), mzd_generator_from_csr(), perm_p(), perm_p_trans(), product_weight_csr_mzd(), and csr_t::rows.
-Referenced by var_init().
+Referenced by var_init().
@@ -661,9 +748,9 @@generate binary error vector with error probability p
-Definition at line 655 of file util_m4ri.c.
+Definition at line 706 of file util_m4ri.c.
- + @@ -696,9 +783,9 @@Referenced by do_RW_dist(), Lx_for_CSS_code(), mzd_generator_from_csr(), and product_weight_csr_mzd().
+Referenced by csr_print(), do_RW_dist(), Lx_for_CSS_code(), mzd_generator_from_csr(), and product_weight_csr_mzd().
@@ -737,7 +824,7 @@Referenced by Lx_for_CSS_code(), and mzd_generator_from_csr().
+Referenced by Lx_for_CSS_code(), and mzd_generator_from_csr().
@@ -771,9 +858,9 @@References csr_t::cols, params_t::debug, mzd_from_csr(), mzd_gauss_naive(), mzp_out(), and prm.
+References csr_t::cols, params_t::debug, mzd_from_csr(), mzd_gauss_naive(), mzp_out(), and prm.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -797,7 +884,7 @@Referenced by csr_from_mzd(), and product_weight_csr_mzd().
+Referenced by csr_from_mzd(), and product_weight_csr_mzd().
@@ -869,9 +956,9 @@print out the permutation (only needed under windows)
-Definition at line 375 of file util_m4ri.c.
+Definition at line 414 of file util_m4ri.c.
-References p.
+References p.
Referenced by mzd_generator_from_csr().
@@ -904,9 +991,9 @@replace pivot q with a random pivot smaller or equal length (second parameter); remaining positions in place, *** note: LAPACK style pivot permutations! *** return pointer to q. input: perm – existing permutation
-Definition at line 359 of file util_m4ri.c.
+Definition at line 398 of file util_m4ri.c.
-References ERROR, and rand_uniform().
+References ERROR, and rand_uniform().
@@ -943,11 +1030,11 @@apply pivot p to permutation q in place from start; initialize q to identity permutation if NULL return q
-Definition at line 387 of file util_m4ri.c.
+Definition at line 426 of file util_m4ri.c.
-References ERROR, p, and SWAPINT.
+References ERROR, p, and SWAPINT.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -984,11 +1071,11 @@apply pivot p (transposed) to permutation q in place from start; initialize q to identity permutation if NULL return q
-Definition at line 405 of file util_m4ri.c.
+Definition at line 444 of file util_m4ri.c.
-References ERROR, p, and SWAPINT.
+References ERROR, p, and SWAPINT.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -1025,11 +1112,11 @@helper function to compute the weight of the product A*B (transpose == 0) or A*B^T (transpose == 1) with A sparse, B dense binary matrices
-Definition at line 319 of file util_m4ri.c.
+Definition at line 358 of file util_m4ri.c.
References mzd_from_csr(), and mzd_weight().
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -1050,9 +1137,9 @@return uniformly distributed random number in the range [0,...,max-1]
-Definition at line 339 of file util_m4ri.c.
+Definition at line 378 of file util_m4ri.c.
-Referenced by mzp_rand_len().
+Referenced by mzp_rand_len().
@@ -1083,9 +1170,9 @@just check whether syndrome is zero or not
-Definition at line 296 of file util_m4ri.c.
+Definition at line 335 of file util_m4ri.c.
-References csr_t::i, p, csr_t::p, and csr_t::rows.
+References csr_t::i, p, csr_t::p, and csr_t::rows.
@@ -1128,9 +1215,9 @@Calculate the syndrome vector change: syndrome=syndrome +row.spaQ optionally clear the destination
-Definition at line 265 of file util_m4ri.c.
+Definition at line 283 of file util_m4ri.c.
-References csr_t::cols, ERROR, and csr_t::rows.
+References csr_t::cols, ERROR, and csr_t::rows.
diff --git a/util__m4ri_8c_source.html b/util__m4ri_8c_source.html index dca89be..eb71329 100644 --- a/util__m4ri_8c_source.html +++ b/util__m4ri_8c_source.html @@ -185,7 +185,7 @@ - + @@ -197,7 +197,7 @@ - + @@ -305,421 +305,468 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Definition at line 16 of file util_m4ri.h.
+Definition at line 13 of file util_m4ri.h.
@@ -231,7 +237,7 @@Definition at line 35 of file util_m4ri.h.
+Definition at line 32 of file util_m4ri.h.
@@ -251,7 +257,7 @@Definition at line 32 of file util_m4ri.h.
+Definition at line 29 of file util_m4ri.h.
@@ -272,7 +278,7 @@macros from nauty.h SETWD(pos) gives the setword in which pos is located SETBT(pos) gives the location of bit pos in a setword
-Definition at line 31 of file util_m4ri.h.
+Definition at line 28 of file util_m4ri.h.
@@ -322,7 +328,7 @@Definition at line 33 of file util_m4ri.h.
+Definition at line 30 of file util_m4ri.h.
@@ -360,11 +366,11 @@Permute columns of a CSR matrix with permutation perm.
-Definition at line 583 of file util_m4ri.c.
+Definition at line 634 of file util_m4ri.c.
-References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -386,11 +392,54 @@Definition at line 514 of file util_m4ri.c.
-References int_pair::a, int_pair::b, ERROR, csr_t::i, csr_t::nz, and csr_t::p.
+References int_pair::a, int_pair::b, ERROR, csr_t::i, csr_t::nz, and csr_t::p.
-Referenced by csr_apply_perm(), csr_mm_read(), and csr_transpose().
+Referenced by csr_apply_perm(), csr_mm_read(), and csr_transpose().
+ + + + +int csr_csr_mul_non_zero | +( | +const csr_t *const | +A, | +
+ | + | const csr_t *const | +B | +
+ | ) | ++ |
return 1 if matrix product A*B^T is non-zero
+A | first matrix |
B | second matrix |
Definition at line 311 of file util_m4ri.c.
+ +References csr_t::cols, ERROR, csr_t::nz, csr_t::p, and csr_t::rows.
+ +Referenced by var_init().
kill a CSR matrix
-Definition at line 422 of file util_m4ri.c.
+Definition at line 461 of file util_m4ri.c.
-References p.
+References p.
-Referenced by Lx_for_CSS_code(), and var_kill().
+Referenced by Lx_for_CSS_code(), and var_kill().
@@ -459,16 +508,16 @@Definition at line 478 of file util_m4ri.c.
-References csr_t::cols, ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, csr_t::p, and csr_t::rows.
+References csr_t::cols, ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, csr_t::p, and csr_t::rows.
-Referenced by csr_apply_perm(), csr_from_mzd(), csr_mm_read(), and csr_transpose().
+Referenced by csr_apply_perm(), csr_from_mzd(), csr_mm_read(), and csr_transpose().
- -return max row weight of CSR matrix p TODO: add code for List of Pairs
return max row weight of CSR matrix p TODO: add code for List of Pairs
Definition at line 117 of file util_m4ri.c.
-References p.
+References p.
+ +Referenced by do_CC_dist(), and var_init().
read sparse matrix into a (binary) CSR (all entries default to 1) (re)allocate mat if needed use transpose=1 to transpose.
-Definition at line 528 of file util_m4ri.c.
+Definition at line 579 of file util_m4ri.c.
-References csr_compress(), csr_init(), ERROR, csr_t::i, mm_is_general, mm_is_integer, mm_is_matrix, mm_is_sparse, mm_read_banner(), mm_read_mtx_crd_size(), mm_typecode_to_str(), csr_t::nz, and csr_t::p.
+References csr_compress(), csr_init(), ERROR, csr_t::i, mm_is_general, mm_is_integer, mm_is_matrix, mm_is_sparse, mm_read_banner(), mm_read_mtx_crd_size(), mm_typecode_to_str(), csr_t::nz, and csr_t::p.
-Referenced by var_init().
+Referenced by var_init().
@@ -572,7 +625,7 @@References csr_t::cols, ERROR, csr_t::i, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, ERROR, csr_t::i, p, csr_t::p, and csr_t::rows.
@@ -594,14 +647,48 @@Definition at line 540 of file util_m4ri.c.
+ +References csr_t::cols, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+ + + + +void csr_print | +( | +const csr_t *const | +smat, | +
+ | + | const char | +str[] | +
+ | ) | ++ |
Definition at line 562 of file util_m4ri.c.
-References csr_t::cols, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+References mzd_from_csr().
+ +Referenced by do_CC_dist(), and var_init().
References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
+References csr_t::cols, csr_compress(), csr_init(), ERROR, csr_t::i, csr_t::nz, csr_t::nzmax, p, csr_t::p, and csr_t::rows.
-Referenced by do_dist_clus().
+Referenced by do_CC_dist().
@@ -685,13 +772,6 @@lower bound on the minimum distance by cluster enumeration
-WARNING: only intended for LDPC codes
- -Definition at line 141 of file dist_m4ri.c.
- -References csr_t::cols, csr_transpose(), and csr_t::rows.
- @@ -728,7 +808,7 @@Definition at line 668 of file util_m4ri.c.
@@ -763,11 +843,11 @@Definition at line 770 of file util_m4ri.c.
-References csr_t::cols, csr_apply_perm(), csr_free(), csr_from_mzd(), ERROR, mzd_from_csr(), mzd_gauss_naive(), mzd_generator_from_csr(), perm_p(), perm_p_trans(), product_weight_csr_mzd(), and csr_t::rows.
+References csr_t::cols, csr_apply_perm(), csr_free(), csr_from_mzd(), ERROR, mzd_from_csr(), mzd_gauss_naive(), mzd_generator_from_csr(), perm_p(), perm_p_trans(), product_weight_csr_mzd(), and csr_t::rows.
-Referenced by var_init().
+Referenced by var_init().
@@ -798,9 +878,9 @@generate binary error vector with error probability p
-Definition at line 655 of file util_m4ri.c.
+Definition at line 706 of file util_m4ri.c.
- + @@ -833,9 +913,9 @@Referenced by do_RW_dist(), Lx_for_CSS_code(), mzd_generator_from_csr(), and product_weight_csr_mzd().
+Referenced by csr_print(), do_RW_dist(), Lx_for_CSS_code(), mzd_generator_from_csr(), and product_weight_csr_mzd().
@@ -875,7 +955,7 @@Referenced by Lx_for_CSS_code(), and mzd_generator_from_csr().
+Referenced by Lx_for_CSS_code(), and mzd_generator_from_csr().
@@ -909,9 +989,9 @@References csr_t::cols, params_t::debug, mzd_from_csr(), mzd_gauss_naive(), mzp_out(), and prm.
+References csr_t::cols, params_t::debug, mzd_from_csr(), mzd_gauss_naive(), mzp_out(), and prm.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -935,7 +1015,7 @@Referenced by csr_from_mzd(), and product_weight_csr_mzd().
+Referenced by csr_from_mzd(), and product_weight_csr_mzd().
@@ -1007,9 +1087,9 @@print out the permutation (only needed under windows)
-Definition at line 375 of file util_m4ri.c.
+Definition at line 414 of file util_m4ri.c.
-References p.
+References p.
Referenced by mzd_generator_from_csr().
@@ -1042,9 +1122,9 @@replace pivot q with a random pivot smaller or equal length (second parameter); remaining positions in place, *** note: LAPACK style pivot permutations! *** return pointer to q. input: perm – existing permutation
-Definition at line 359 of file util_m4ri.c.
+Definition at line 398 of file util_m4ri.c.
-References ERROR, and rand_uniform().
+References ERROR, and rand_uniform().
@@ -1081,11 +1161,11 @@apply pivot p to permutation q in place from start; initialize q to identity permutation if NULL return q
-Definition at line 387 of file util_m4ri.c.
+Definition at line 426 of file util_m4ri.c.
-References ERROR, p, and SWAPINT.
+References ERROR, p, and SWAPINT.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -1122,11 +1202,11 @@apply pivot p (transposed) to permutation q in place from start; initialize q to identity permutation if NULL return q
-Definition at line 405 of file util_m4ri.c.
+Definition at line 444 of file util_m4ri.c.
-References ERROR, p, and SWAPINT.
+References ERROR, p, and SWAPINT.
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -1163,11 +1243,11 @@helper function to compute the weight of the product A*B (transpose == 0) or A*B^T (transpose == 1) with A sparse, B dense binary matrices
-Definition at line 319 of file util_m4ri.c.
+Definition at line 358 of file util_m4ri.c.
References mzd_from_csr(), and mzd_weight().
-Referenced by Lx_for_CSS_code().
+Referenced by Lx_for_CSS_code().
@@ -1189,9 +1269,9 @@return uniformly distributed random number in the range [0,...,max-1]
-Definition at line 339 of file util_m4ri.c.
+Definition at line 378 of file util_m4ri.c.
-Referenced by mzp_rand_len().
+Referenced by mzp_rand_len().
@@ -1223,9 +1303,9 @@Definition at line 335 of file util_m4ri.c.
-References csr_t::i, p, csr_t::p, and csr_t::rows.
+References csr_t::i, p, csr_t::p, and csr_t::rows.
@@ -1268,9 +1348,9 @@Calculate the syndrome vector change: syndrome=syndrome +row.spaQ optionally clear the destination
-Definition at line 265 of file util_m4ri.c.
+Definition at line 283 of file util_m4ri.c.
-References csr_t::cols, ERROR, and csr_t::rows.
+References csr_t::cols, ERROR, and csr_t::rows.
diff --git a/util__m4ri_8h__dep__incl.map b/util__m4ri_8h__dep__incl.map index 47a38d9..f183005 100644 --- a/util__m4ri_8h__dep__incl.map +++ b/util__m4ri_8h__dep__incl.map @@ -1,7 +1,8 @@ diff --git a/util__m4ri_8h__dep__incl.md5 b/util__m4ri_8h__dep__incl.md5 index a281e06..2058c63 100644 --- a/util__m4ri_8h__dep__incl.md5 +++ b/util__m4ri_8h__dep__incl.md5 @@ -1 +1 @@ -e1ff1664b67dc80c565b129d35953764 \ No newline at end of file +36090da2074dc61fb525c88328bf5a19 \ No newline at end of file diff --git a/util__m4ri_8h__dep__incl.png b/util__m4ri_8h__dep__incl.png index 50eb86d..3bf2a40 100644 Binary files a/util__m4ri_8h__dep__incl.png and b/util__m4ri_8h__dep__incl.png differ diff --git a/util__m4ri_8h_source.html b/util__m4ri_8h_source.html index 8c6281d..7d8bfa0 100644 --- a/util__m4ri_8h_source.html +++ b/util__m4ri_8h_source.html @@ -90,291 +90,290 @@ - - - - - -