From 4c6b3c0a2dda124272bd9a89c3d6365f2a1ddcd6 Mon Sep 17 00:00:00 2001 From: James Yang Date: Mon, 14 Oct 2024 15:44:12 -0700 Subject: [PATCH] Add a possible msvc fix --- .../include/adelie_core/matrix/matrix_naive_convex_relu.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adelie/src/include/adelie_core/matrix/matrix_naive_convex_relu.hpp b/adelie/src/include/adelie_core/matrix/matrix_naive_convex_relu.hpp index 31ca0c73..70e35f5e 100644 --- a/adelie/src/include/adelie_core/matrix/matrix_naive_convex_relu.hpp +++ b/adelie/src/include/adelie_core/matrix/matrix_naive_convex_relu.hpp @@ -184,14 +184,15 @@ class MatrixNaiveConvexReluDense: public MatrixNaiveBase buff(_buff.data(), _n_threads, d); const auto routine = [&](auto i) { const auto i_sgn = i / m; const auto i_m = i - i_sgn * m; auto out_m = out.segment(i * d, d).matrix(); - Eigen::Map buff(_buff.data(), _n_threads, d); dgemv( _mat, - (1-2*i_sgn) * _mask.col(i_m).transpose().template cast().cwiseProduct((v * weights).matrix()), + (1-2*i_sgn) * _mask.col(i_m).transpose().template cast().cwiseProduct(v_weights), 1, buff /* unused */, out_m