disable fill_n optimization for msvc

This commit is contained in:
Charles Schlosser 2024-11-19 01:38:48 +00:00
parent 0af6ab4b76
commit 93ec5450cb

View File

@ -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 <typename DstXprType>
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 <typename DstXprType, typename SrcXprType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_dense_assignment_loop(DstXprType& dst, const SrcXprType& src) {