We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b61b1a commit 58cb7e1Copy full SHA for 58cb7e1
1 file changed
test/test_shuffle.cpp
@@ -621,12 +621,10 @@ struct shuffle_test
621
{
622
B b_lhs = B::load_unaligned(lhs.data());
623
std::array<B, size> b_matrix;
624
- for (size_t i = 0; i < size; ++i)
625
- b_matrix[i] = b_lhs;
+ std::fill(b_matrix.begin(), b_matrix.end(), b_lhs);
626
std::array<value_type, size * size> ref_matrix;
627
for (size_t i = 0; i < size; ++i)
628
- for (size_t j = 0; j < size; ++j)
629
- ref_matrix[i * size + j] = lhs[i];
+ std::fill(&ref_matrix[i*size], &ref_matrix[(i + 1)*size], lhs[i]);
630
631
INFO("transpose");
632
xsimd::transpose(b_matrix.data(), b_matrix.data() + b_matrix.size());
0 commit comments