From 024c43fe8129f051b20c7f89c329f1227dc260ad Mon Sep 17 00:00:00 2001 From: Weilei Zeng at qlab01 Date: Fri, 26 Apr 2024 17:46:46 +0800 Subject: [PATCH] minor change 6 --- test.cpp | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/test.cpp b/test.cpp index 2a3ae03..4839435 100644 --- a/test.cpp +++ b/test.cpp @@ -3,6 +3,8 @@ #include #include +#include "json.hpp" +using json=nlohmann::json; #include //get time in seconds #include // get time in milli seconds @@ -368,6 +370,7 @@ void product_code_test(){ *@param error, en error with weight w *@param n, lenght of error */ +/* bool next_error(itpp::bvec & error, int n, int w){ // std::cout<<"input: "<15) { + std::cout<<"Gx is too big. Cannot save syndrome table"; + throw "Gx is too big"; + } itpp::bvec syndrome_table[table_size]; itpp::bvec b_zero=itpp::zeros_b(code.n); for ( int i =0;i