We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349e217 commit 3e71154Copy full SHA for 3e71154
lib/ControlSystemsBase/src/hammerstein_weiner.jl
@@ -40,7 +40,7 @@ This function can also be used to linearize an output equation `C, D = linearize
40
"""
41
function linearize(f, xi::AbstractVector, ui::AbstractVector, args...)
42
A = ForwardDiff.jacobian(x -> f(x, ui, args...), xi)
43
- B = ForwardDiff.jacobian(u -> f(xi, u, args...), ui)
+ B = ForwardDiff.jacobian(u -> f(convert(typeof(u), xi), u, args...), ui)
44
A, B
45
end
46
0 commit comments