From 93ec5450cb869a3957b05fecfc844df94c699860 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Tue, 19 Nov 2024 01:38:48 +0000 Subject: [PATCH] disable fill_n optimization for msvc --- Eigen/src/Core/AssignEvaluator.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/Core/AssignEvaluator.h b/Eigen/src/Core/AssignEvaluator.h index f7f0b238b..f40b2f433 100644 --- a/Eigen/src/Core/AssignEvaluator.h +++ b/Eigen/src/Core/AssignEvaluator.h @@ -738,6 +738,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR void call_dense_assignment } // Specialization for filling the destination with a constant value. +#if !EIGEN_COMP_MSVC #ifndef EIGEN_GPU_COMPILE_PHASE template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_dense_assignment_loop( @@ -748,6 +749,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_dense_assignment_loop( std::fill_n(dst.data(), dst.size(), src.functor()()); } #endif +#endif template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_dense_assignment_loop(DstXprType& dst, const SrcXprType& src) {