From 5f12dfb83d190f4cf02c78aab876580ff71df4a1 Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 29 May 2024 13:09:12 +1000 Subject: [PATCH] sync to handle corner cases --- include/armadillo_bits/fn_dot.hpp | 2 ++ 1 file changed, 2 insertions(+) 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); } }