From f426eff949a989b415dd19f59ae1d5c7e107566a Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Tue, 2 Sep 2025 15:31:22 -0700 Subject: [PATCH] Add inline/device-function attributes to fma. --- Eigen/src/Core/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index ee62f01b8..155fdad20 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -968,7 +968,7 @@ struct fma_impl { // STD or ADL version if it exists. template struct fma_impl::value>> { - static T run(const T& a, const T& b, const T& c) { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T run(const T& a, const T& b, const T& c) { using std::fma; return fma(a, b, c); }