Skip to content

Commit 3e71154

Browse files
committed
type fix
1 parent 349e217 commit 3e71154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ControlSystemsBase/src/hammerstein_weiner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This function can also be used to linearize an output equation `C, D = linearize
4040
"""
4141
function linearize(f, xi::AbstractVector, ui::AbstractVector, args...)
4242
A = ForwardDiff.jacobian(x -> f(x, ui, args...), xi)
43-
B = ForwardDiff.jacobian(u -> f(xi, u, args...), ui)
43+
B = ForwardDiff.jacobian(u -> f(convert(typeof(u), xi), u, args...), ui)
4444
A, B
4545
end
4646

0 commit comments

Comments
 (0)