You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error when trying to obtain the Jacobian sparsity of a function with Symbolics.jacobian_sparsity if that function concatenates interpolations.
Minimal Reproducible Example 👇
using Symbolics: jacobian_sparsity
using DataInterpolations
u = [1.0, 2.0]
t = [0.0, 2.0]
A =LinearInterpolation(u, t)
B =LinearInterpolation(u.^2, t; extrapolate =true)
out0 =zeros(5)
x0 =rand(5)
functionf!(out, x)
for (i, x_) inenumerate(x)
out[i] = (B ∘ A)(x_)
endendjacobian_sparsity((out, x) ->f!(out, x), out0, x0)
Describe the bug 🐞
There is an error when trying to obtain the Jacobian sparsity of a function with
Symbolics.jacobian_sparsity
if that function concatenates interpolations.Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment
DataInterpolations v5.3.1
Symbolics v5.30.1
The text was updated successfully, but these errors were encountered: