diff --git a/include/armadillo_bits/op_dot_meat.hpp b/include/armadillo_bits/op_dot_meat.hpp index 78d53a49..0b8bc76a 100644 --- a/include/armadillo_bits/op_dot_meat.hpp +++ b/include/armadillo_bits/op_dot_meat.hpp @@ -225,7 +225,7 @@ op_dot::apply(const T1& X, const T2& Y) } } - if( (is_cx::no) && (partial_unwrap::is_fast) && (partial_unwrap::is_fast) ) + if( (is_cx::no) && (resolves_to_vector::value) && (resolves_to_vector::value) && (partial_unwrap::is_fast) && (partial_unwrap::is_fast) ) { const partial_unwrap UA(X); const partial_unwrap UB(Y);