From 949ce3af5f2740608e55f67294bbee92b3b86173 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Thu, 4 Dec 2025 20:02:35 +0100 Subject: [PATCH] [Math] Fix signature of custom Clad pullbacks The `clad::array_ref` is not a thing anymore, and we need to change the signature to C-style arrays to work. --- math/mathcore/inc/Math/CladDerivator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math/mathcore/inc/Math/CladDerivator.h b/math/mathcore/inc/Math/CladDerivator.h index 044b8eb70e412..1c33e7cd3f1ca 100644 --- a/math/mathcore/inc/Math/CladDerivator.h +++ b/math/mathcore/inc/Math/CladDerivator.h @@ -126,7 +126,7 @@ ValueAndPushforward Hypot_pushforward(T x, T y, T d_x, T d_y) } template -void Hypot_pullback(T x, T y, U p, clad::array_ref d_x, clad::array_ref d_y) +void Hypot_pullback(T x, T y, U p, T *d_x, T *d_y) { T h = ::TMath::Hypot(x, y); *d_x += x / h * p; @@ -162,7 +162,7 @@ ValueAndPushforward Power_pushforward(T x, U y, T d_x, U d_y) } template -void Power_pullback(T x, U y, V p, clad::array_ref d_x, clad::array_ref d_y) +void Power_pullback(T x, U y, V p, T *d_x, U *d_y) { auto t = pow_pushforward(x, y, 1, 0); *d_x += t.pushforward * p;