Compare commits

...

2 Commits
3.4.1 ... 3.4

Author SHA1 Message Date
Antonio Sanchez
28ded8800c Fix input type for min/max.
We're missing an input base class specifier for the default `NanPropagation=PropagateFast`
case for consistency.

Fixes #2990.
2025-10-20 12:26:11 -07:00
Antonio Sánchez
0295f81a83 Make eigen_packet_wrapper trivial for c++11. 2025-10-02 17:53:19 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -160,7 +160,11 @@ struct eigen_packet_wrapper
{ {
EIGEN_ALWAYS_INLINE operator T&() { return m_val; } EIGEN_ALWAYS_INLINE operator T&() { return m_val; }
EIGEN_ALWAYS_INLINE operator const T&() const { return m_val; } EIGEN_ALWAYS_INLINE operator const T&() const { return m_val; }
#if EIGEN_HAS_CXX11
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() = default;
#else
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() {}; EIGEN_ALWAYS_INLINE eigen_packet_wrapper() {};
#endif
EIGEN_ALWAYS_INLINE eigen_packet_wrapper(const T &v) : m_val(v) {} EIGEN_ALWAYS_INLINE eigen_packet_wrapper(const T &v) : m_val(v) {}
EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) { EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) {
m_val = v; m_val = v;

View File

@@ -51,7 +51,7 @@ min
#else #else
(min) (min)
#endif #endif
(const OtherDerived &other) const (const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
{ {
return (min<PropagateFast>)(other); return (min<PropagateFast>)(other);
} }
@@ -115,7 +115,7 @@ max
#else #else
(max) (max)
#endif #endif
(const OtherDerived &other) const (const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
{ {
return (max<PropagateFast>)(other); return (max<PropagateFast>)(other);
} }