From e9dfbad618597963b1778be46e6cd5c2ca835d71 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Thu, 14 Aug 2025 00:04:01 +0000 Subject: [PATCH] Fix dangling reference in VectorwiseOp::iterator --- Eigen/src/Core/VectorwiseOp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h index 9e34d8c99..8591bda2a 100644 --- a/Eigen/src/Core/VectorwiseOp.h +++ b/Eigen/src/Core/VectorwiseOp.h @@ -705,7 +705,7 @@ class VectorwiseOp { protected: EIGEN_DEVICE_FUNC Index redux_length() const { return Direction == Vertical ? m_matrix.rows() : m_matrix.cols(); } - ExpressionTypeNested m_matrix; + ExpressionTypeNestedCleaned& m_matrix; }; // const colwise moved to DenseBase.h due to CUDA compiler bug