CSS product code  0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
BP_Decoder Class Reference

#include <bp_decoder.h>

Public Member Functions

bool is_H_valid (itpp::GF2mat H_temp)
 
void init (itpp::GF2mat H_temp)
 
void set_exit_iteration (int exit_iteration_temp)
 
void set_decode_mode (int decode_mode_temp)
 
void set_decode_mode_str (std::string decode_mode_str_temp)
 
void set_silent_mode (bool silent_mode_temp)
 
void set_debug_mode (bool debug_mode_temp)
 
void print_info ()
 
int decode (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout)
 
int bp_syndrome_llr (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout)
 
int bp_schedule (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout)
 
bool match_syndrome (itpp::vec LLR, itpp::bvec syndrome)
 
int bp_flexible (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout)
 
void set_schedule_mode (int schedule_mode_temp)
 

Public Attributes

bool silent_mode = false
 
bool debug = false
 
const double INF_BP =10000
 
itpp::GF2mat H
 
int exit_iteration =50
 
double alpha =1.0
 
int decode_mode = 2
 
std::string decode_mode_str ="min sum"
 
int nvar
 
int ncheck
 
int nedge
 
bool is_initialized =false
 
int schedule_mode =0
 
std::string schedule_mode_str ="no schedule, parallel"
 
itpp::mat schedule
 

Detailed Description

Definition at line 23 of file bp_decoder.h.

Member Function Documentation

◆ bp_flexible()

int BP_Decoder::bp_flexible ( itpp::bvec  syndrome,
const itpp::vec &  LLRin,
itpp::vec &  LLRout 
)

Definition at line 597 of file bp_decoder.h.

◆ bp_schedule()

int BP_Decoder::bp_schedule ( itpp::bvec  syndrome,
const itpp::vec &  LLRin,
itpp::vec &  LLRout 
)

Definition at line 464 of file bp_decoder.h.

◆ bp_syndrome_llr()

int BP_Decoder::bp_syndrome_llr ( itpp::bvec  syndrome,
const itpp::vec &  LLRin,
itpp::vec &  LLRout 
)

Definition at line 287 of file bp_decoder.h.

◆ decode()

int BP_Decoder::decode ( itpp::bvec  syndrome,
const itpp::vec &  LLRin,
itpp::vec &  LLRout 
)

Definition at line 263 of file bp_decoder.h.

◆ init()

void BP_Decoder::init ( itpp::GF2mat  H_temp)

Definition at line 82 of file bp_decoder.h.

◆ is_H_valid()

bool BP_Decoder::is_H_valid ( itpp::GF2mat  H_temp)

Definition at line 70 of file bp_decoder.h.

◆ match_syndrome()

bool BP_Decoder::match_syndrome ( itpp::vec  LLR,
itpp::bvec  syndrome 
)

Definition at line 281 of file bp_decoder.h.

◆ print_info()

void BP_Decoder::print_info ( )

Definition at line 98 of file bp_decoder.h.

◆ set_debug_mode()

void BP_Decoder::set_debug_mode ( bool  debug_mode_temp)

Definition at line 64 of file bp_decoder.h.

◆ set_decode_mode()

void BP_Decoder::set_decode_mode ( int  decode_mode_temp)

Definition at line 122 of file bp_decoder.h.

◆ set_decode_mode_str()

void BP_Decoder::set_decode_mode_str ( std::string  decode_mode_str_temp)

Definition at line 144 of file bp_decoder.h.

◆ set_exit_iteration()

void BP_Decoder::set_exit_iteration ( int  exit_iteration_temp)

Definition at line 114 of file bp_decoder.h.

◆ set_schedule_mode()

void BP_Decoder::set_schedule_mode ( int  schedule_mode_temp)

Definition at line 155 of file bp_decoder.h.

◆ set_silent_mode()

void BP_Decoder::set_silent_mode ( bool  silent_mode_temp)

Definition at line 60 of file bp_decoder.h.

Member Data Documentation

◆ alpha

double BP_Decoder::alpha =1.0

Definition at line 30 of file bp_decoder.h.

◆ debug

bool BP_Decoder::debug = false

Definition at line 26 of file bp_decoder.h.

◆ decode_mode

int BP_Decoder::decode_mode = 2

Definition at line 31 of file bp_decoder.h.

◆ decode_mode_str

std::string BP_Decoder::decode_mode_str ="min sum"

Definition at line 32 of file bp_decoder.h.

◆ exit_iteration

int BP_Decoder::exit_iteration =50

Definition at line 29 of file bp_decoder.h.

◆ H

itpp::GF2mat BP_Decoder::H

Definition at line 28 of file bp_decoder.h.

◆ INF_BP

const double BP_Decoder::INF_BP =10000

Definition at line 27 of file bp_decoder.h.

◆ is_initialized

bool BP_Decoder::is_initialized =false

Definition at line 35 of file bp_decoder.h.

◆ ncheck

int BP_Decoder::ncheck

Definition at line 33 of file bp_decoder.h.

◆ nedge

int BP_Decoder::nedge

Definition at line 33 of file bp_decoder.h.

◆ nvar

int BP_Decoder::nvar

Definition at line 33 of file bp_decoder.h.

◆ schedule

itpp::mat BP_Decoder::schedule

Definition at line 55 of file bp_decoder.h.

◆ schedule_mode

int BP_Decoder::schedule_mode =0

Definition at line 53 of file bp_decoder.h.

◆ schedule_mode_str

std::string BP_Decoder::schedule_mode_str ="no schedule, parallel"

Definition at line 54 of file bp_decoder.h.

◆ silent_mode

bool BP_Decoder::silent_mode = false

Definition at line 25 of file bp_decoder.h.


The documentation for this class was generated from the following file: