fix hello-world init
This commit is contained in:
		| @@ -35,7 +35,8 @@ ref_sample_cnt = len(ref_data.split(",")) | ||||
| # create cpp file | ||||
| f = open("../xspn_data.cpp", "w") | ||||
| cpp_file = "#include <array>\n" | ||||
| cpp_file += "#include <cmath>\n\n" | ||||
| cpp_file += "#include <cmath>\n" | ||||
| cpp_file += "#include <bits/stdint-uintn.h>\n\n" | ||||
| # The results in the outputdata.txt file are not directly what comes out of the PE but the natural logarithm of it. | ||||
| cpp_file += "constexpr auto ln2 = std::log(2);\n" | ||||
| cpp_file += "std::array<uint8_t, " + str(input_sample_cnt) + "> input_data = {\n" + str(in_data) + "}; \n\n" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user