From 32d06031ceb10e99a85297ce43b17099741ce3bc Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Wed, 19 Apr 2023 14:26:52 +0800 Subject: feat: Add experimental content Signed-off-by: KunoiSayami --- expt_0722.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'expt_0722.cpp') diff --git a/expt_0722.cpp b/expt_0722.cpp index eb1ffed..db4b833 100644 --- a/expt_0722.cpp +++ b/expt_0722.cpp @@ -1,3 +1,22 @@ +// Experimental content: test scale for element cell +/* +Sample output: +scale: 2, max: 7 2: 339 3: 86 4: 27 5: 13 6: 2 7: 2 +scale: 3, max: 6 2: 287 3: 70 4: 18 5: 2 6: 1 +scale: 4, max: 5 2: 257 3: 43 4: 14 5: 3 +scale: 5, max: 5 2: 241 3: 46 4: 6 5: 1 +scale: 6, max: 4 2: 226 3: 26 4: 3 +scale: 7, max: 4 2: 188 3: 26 4: 1 +scale: 8, max: 4 2: 182 3: 20 4: 3 +scale: 9, max: 4 2: 165 3: 17 4: 3 +scale: 10, max: 4 2: 154 3: 16 4: 1 +scale: 11, max: 4 2: 153 3: 9 4: 1 +scale: 12, max: 4 2: 127 3: 11 4: 1 +scale: 13, max: 3 2: 135 3: 5 +scale: 14, max: 3 2: 118 3: 7 +scale: 15, max: 3 2: 129 3: 4 +scale: 16, max: 4 2: 108 3: 5 4: 1 + */ #include #include #include @@ -5,7 +24,7 @@ #include #include -constexpr size_t length = 1048576; +constexpr size_t length = 2097152; std::vector population_vector, sample_vector, original_vector; // std::vector> result_storage; @@ -91,6 +110,8 @@ int main(int _argc, char const *_argv[]) { ; fclose(file); + // printf("%zu %zu\n", population_vector.size(), length); + assert(population_vector.size() == length); original_vector = population_vector; -- cgit v1.3.1