diff --git a/include/armadillo_bits/fn_dot.hpp b/include/armadillo_bits/fn_dot.hpp index f22cd45a..a9c26ca5 100644 --- a/include/armadillo_bits/fn_dot.hpp +++ b/include/armadillo_bits/fn_dot.hpp @@ -305,6 +305,8 @@ dot arma_conform_assert_same_size(U.M.n_elem, uword(1), yy.n_elem, uword(1), "dot()"); + yy.m.sync(); + return dense_sparse_helper::dot(U.M.memptr(), yy.m, yy.aux_col1); } }