Skip to content

Commit

Permalink
Added missing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
cainamisir committed Aug 22, 2024
1 parent 1679161 commit 90dad57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/include/test/unit_scoring.cc
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ inline float sum_of_squares_avx2(const V& a, const W& b) {
}

TEST_CASE("avx2", "[scoring]") {
ColMajorMatrix<float> rand_a{
ColMajorMatrix<float> rand_a{{
{0, 1, 2, 3, 4, 5, 6, 7, 3, 1, 4},
{8, 9, 10, 11, 12, 13, 14, 15, 1, 5, 9},
{16, 17, 18, 19, 20, 21, 22, 23, 2, 6, 5},
Expand All @@ -739,9 +739,9 @@ TEST_CASE("avx2", "[scoring]") {
{48, 49, 50, 51, 52, 53, 54, 55, 8, 4, 6},
{56, 57, 58, 59, 60, 61, 62, 63, 2, 6, 4},
{46, 65, 66, 67, 68, 69, 70, 71, 3, 3, 8},
};
}};

ColMajorMatrix<float> rand_b{
ColMajorMatrix<float> rand_b{{
{136, 135, 134, 33, 132, 131, 130, 129, 3, 8, 3},
{128, 127, 126, 125, 124, 123, 122, 121, 3, 4, 6},
{120, 119, 118, 117, 116, 115, 114, 113, 2, 6, 4},
Expand All @@ -751,9 +751,9 @@ TEST_CASE("avx2", "[scoring]") {
{88, 87, 86, 85, 84, 83, 82, 81, 3, 5, 6},
{80, 79, 78, 77, 76, 75, 74, 73, 2, 9, 5},
{72, 71, 70, 69, 68, 67, 66, 65, 1, 4, 1},
};
}};

ColMajorMatrix<float> rand_0{
ColMajorMatrix<float> rand_0{{
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
Expand All @@ -763,7 +763,7 @@ TEST_CASE("avx2", "[scoring]") {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
};
}};

float sum_0 = 0;
for (size_t i = 0; i < num_vectors(rand_a); ++i) {
Expand Down

0 comments on commit 90dad57

Please sign in to comment.