CSS product code  0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
bp.cpp File Reference
#include "dist.h"
#include <itpp/itbase.h>
#include <itpp/itcomm.h>
#include <stdio.h>
#include "weilei_lib.h"
#include <cmath>

Go to the source code of this file.

Functions

itpp::bvec reduce_weight (itpp::bvec e, itpp::GF2mat G)
 
itpp::bvec qllr_to_bvec (itpp::QLLRvec llr, int bound)
 
itpp::GF2mat read_one_matrix (char *filename_prefix, char *type, char *filename_suffix)
 
int check_matrices (itpp::GF2mat *G, itpp::GF2mat *H, itpp::GF2mat *U, itpp::GF2mat *W, itpp::mat *K)
 
int remove_rows (itpp::GF2mat *G, itpp::bvec rows_to_remove)
 
int remove_cols (itpp::GF2mat *G, itpp::bvec cols_to_remove)
 
int remove_cols_mat (itpp::mat *G, itpp::bvec cols_to_remove)
 
bool check_row_weight (itpp::GF2mat *H)
 
int reduce_matrices (itpp::GF2mat *G, itpp::GF2mat *H, itpp::GF2mat *U, itpp::GF2mat *W, itpp::mat *K)
 
int read_matrices_for_partial_sum (char *filename_prefix, char *filename_suffix, itpp::GF2mat *G, itpp::GF2mat *H, itpp::GF2mat *U, itpp::GF2mat *W, itpp::mat *K)
 

Function Documentation

◆ check_matrices()

int check_matrices ( itpp::GF2mat *  G,
itpp::GF2mat *  H,
itpp::GF2mat *  U,
itpp::GF2mat *  W,
itpp::mat *  K 
)

Definition at line 72 of file bp.cpp.

◆ check_row_weight()

bool check_row_weight ( itpp::GF2mat *  H)

Definition at line 175 of file bp.cpp.

◆ qllr_to_bvec()

itpp::bvec qllr_to_bvec ( itpp::QLLRvec  llr,
int  bound 
)

Definition at line 38 of file bp.cpp.

◆ read_matrices_for_partial_sum()

int read_matrices_for_partial_sum ( char *  filename_prefix,
char *  filename_suffix,
itpp::GF2mat *  G,
itpp::GF2mat *  H,
itpp::GF2mat *  U,
itpp::GF2mat *  W,
itpp::mat *  K 
)

Definition at line 230 of file bp.cpp.

◆ read_one_matrix()

itpp::GF2mat read_one_matrix ( char *  filename_prefix,
char *  type,
char *  filename_suffix 
)

Definition at line 63 of file bp.cpp.

◆ reduce_matrices()

int reduce_matrices ( itpp::GF2mat *  G,
itpp::GF2mat *  H,
itpp::GF2mat *  U,
itpp::GF2mat *  W,
itpp::mat *  K 
)

Definition at line 189 of file bp.cpp.

◆ reduce_weight()

itpp::bvec reduce_weight ( itpp::bvec  e,
itpp::GF2mat  G 
)

Definition at line 16 of file bp.cpp.

◆ remove_cols()

int remove_cols ( itpp::GF2mat *  G,
itpp::bvec  cols_to_remove 
)

Definition at line 148 of file bp.cpp.

◆ remove_cols_mat()

int remove_cols_mat ( itpp::mat *  G,
itpp::bvec  cols_to_remove 
)

Definition at line 157 of file bp.cpp.

◆ remove_rows()

int remove_rows ( itpp::GF2mat *  G,
itpp::bvec  rows_to_remove 
)

Definition at line 117 of file bp.cpp.