# Cubic Spline Interpolation for unevenly sampled data with gradient support?

**URL:** <https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794>\
**Category:** Performance\
**Tags:** flux, interpolations\
**Created:** [November 4, 2022, 10:17pm UTC](https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794 "2022-11-04T22:17:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [April 19, 2023, 9:27pm UTC](https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794/2 "2023-04-19T21:27:25Z")

</div>

I don’t want to pollute your new post and make people think that a solution has been found, so I’m posting here. I tried to run your code and I don’t see how to fix the bug, but at least you’re not alone 💪  
Do you have an idea why the ForwardDiff version works here but fails in [Optimization.jl, DataInterpolations.jl and Gradients](https://discourse.julialang.org/t/optimization-jl-datainterpolations-jl-and-gradients/97676) ?

---

_[View the full topic](https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794)._
