Skip to content

Commit 4cf634e

Browse files
committed
Apply Eigen upstream patch for eigen_memset_helper
Source: https://gitlab.com/libeigen/eigen/-/commit/e246f9cb68d07e8f15c60a2404ac9a625c349223
1 parent 92e71a1 commit 4cf634e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎DESCRIPTION‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: RcppEigen
22
Type: Package
33
Title: 'Rcpp' Integration for the 'Eigen' Templated Linear Algebra Library
4-
Version: 0.4.9.9-2
5-
Date: 2026-06-04
4+
Version: 0.4.9.9-4
5+
Date: 2026-10-01
66
Authors@R: c(person("Doug", "Bates", role = "aut",
77
comment = c(ORCID = "0000-0001-8316-9503")),
88
person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "edd@debian.org",

‎inst/include/Eigen/src/Core/Fill.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ struct eigen_fill_impl<Xpr, /*use_fill*/ true> {
9393

9494
template <typename Xpr>
9595
struct eigen_memset_helper {
96-
static constexpr bool value =
97-
std::is_trivially_copyable<typename Xpr::Scalar>::value && eigen_fill_helper<Xpr>::value;
96+
using Scalar = typename Xpr::Scalar;
97+
static constexpr bool value = std::is_trivially_copyable<Scalar>::value &&
98+
!static_cast<bool>(NumTraits<Scalar>::RequireInitialization) &&
99+
eigen_fill_helper<Xpr>::value;
98100
};
99101

100102
template <typename Xpr>

0 commit comments

Comments
 (0)