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

Go to the source code of this file.

Functions

int copy_test ()
 
int mm_test (int k)
 
int mm_test2 ()
 
int mm_test3 ()
 
int G_s_test ()
 
GF2mat * array_pointer ()
 
int * array_pointer2 ()
 
int array_pointer_test ()
 
vector< vector< int > > vector_test ()
 
int run_vector_test ()
 
int pointer_test ()
 
int char_test ()
 
int if_test ()
 
int pointer_array_test ()
 
void copy2 (GF2mat &G)
 
void copy1 ()
 
int combine_random (int seed)
 
int cpp_random ()
 
void random_test (int seed)
 
void switch_test (int k)
 
void syntax_test ()
 
void generate_code_test (int na, int Gax_row, int id_Gax, int Gaz_row, int id_Gaz, int debug)
 
void kron_test ()
 
int main (int args, char **argvs)
 

Function Documentation

◆ array_pointer()

GF2mat* array_pointer ( )

Definition at line 82 of file test.cpp.

◆ array_pointer2()

int* array_pointer2 ( )

Definition at line 89 of file test.cpp.

◆ array_pointer_test()

int array_pointer_test ( )

Definition at line 98 of file test.cpp.

◆ char_test()

int char_test ( )

Definition at line 165 of file test.cpp.

◆ combine_random()

int combine_random ( int  seed)

Definition at line 213 of file test.cpp.

◆ copy1()

void copy1 ( )

Definition at line 198 of file test.cpp.

◆ copy2()

void copy2 ( GF2mat &  G)

Definition at line 193 of file test.cpp.

◆ copy_test()

int copy_test ( )

Definition at line 16 of file test.cpp.

◆ cpp_random()

int cpp_random ( )

Definition at line 228 of file test.cpp.

◆ G_s_test()

int G_s_test ( )

Definition at line 68 of file test.cpp.

◆ generate_code_test()

void generate_code_test ( int  na,
int  Gax_row,
int  id_Gax,
int  Gaz_row,
int  id_Gaz,
int  debug 
)

Definition at line 326 of file test.cpp.

◆ if_test()

int if_test ( )

Definition at line 176 of file test.cpp.

◆ kron_test()

void kron_test ( )

Definition at line 343 of file test.cpp.

◆ main()

int main ( int  args,
char **  argvs 
)

Definition at line 356 of file test.cpp.

◆ mm_test()

int mm_test ( int  k)

Definition at line 26 of file test.cpp.

◆ mm_test2()

int mm_test2 ( )

Definition at line 43 of file test.cpp.

◆ mm_test3()

int mm_test3 ( )

Definition at line 61 of file test.cpp.

◆ pointer_array_test()

int pointer_array_test ( )

Definition at line 185 of file test.cpp.

◆ pointer_test()

int pointer_test ( )

Definition at line 137 of file test.cpp.

◆ random_test()

void random_test ( int  seed)

Definition at line 246 of file test.cpp.

◆ run_vector_test()

int run_vector_test ( )

Definition at line 123 of file test.cpp.

◆ switch_test()

void switch_test ( int  k)

Definition at line 294 of file test.cpp.

◆ syntax_test()

void syntax_test ( )

Definition at line 316 of file test.cpp.

◆ vector_test()

vector<vector<int> > vector_test ( )

Definition at line 112 of file test.cpp.