From 0315fb319ae592d7b2dc092a8ff9b84e20a1edfb Mon Sep 17 00:00:00 2001 From: Yu You Date: Fri, 9 Jan 2026 11:46:37 -0800 Subject: [PATCH] Change inline hint for `general_matrix_vector_product<>::run()` to gain performance libeigen/eigen!2092 --- Eigen/src/Core/products/GeneralMatrixVector.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Eigen/src/Core/products/GeneralMatrixVector.h b/Eigen/src/Core/products/GeneralMatrixVector.h index ba72a8a4f..b974fb6bd 100644 --- a/Eigen/src/Core/products/GeneralMatrixVector.h +++ b/Eigen/src/Core/products/GeneralMatrixVector.h @@ -97,14 +97,13 @@ struct general_matrix_vector_product -EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void +EIGEN_DEVICE_FUNC inline void general_matrix_vector_product::run(Index rows, Index cols, const LhsMapper& alhs, const RhsMapper& rhs, ResScalar* res, Index resIncr, RhsScalar alpha) { @@ -290,14 +289,13 @@ struct general_matrix_vector_product -EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void +EIGEN_DEVICE_FUNC inline void general_matrix_vector_product::run(Index rows, Index cols, const LhsMapper& alhs, const RhsMapper& rhs, ResScalar* res, Index resIncr, ResScalar alpha) {