Skip to content

Commit b56977c

Browse files
committed
added: type annotation to help stability
1 parent cf6337d commit b56977c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model/linearization.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function linearize!(
118118
d0 .= d .- nonlinmodel.dop
119119
x0 .= x .- nonlinmodel.xop
120120
# --- compute the Jacobians at linearization points ---
121-
A, Bu, Bd, C, Dd = linmodel.A, linmodel.Bu, linmodel.Bd, linmodel.C, linmodel.Dd
121+
A::Matrix{NT}, Bu::Matrix{NT}, Bd::Matrix{NT} = linmodel.A, linmodel.Bu, linmodel.Bd
122+
C::Matrix{NT}, Dd::Matrix{NT} = linmodel.C, linmodel.Dd
122123
xnext0::Vector{NT}, y0::Vector{NT} = linmodel.buffer.x, linmodel.buffer.y
123124
myf_x0! = (xnext0, x0) -> f!(xnext0, nonlinmodel, x0, u0, d0)
124125
myf_u0! = (xnext0, u0) -> f!(xnext0, nonlinmodel, x0, u0, d0)

0 commit comments

Comments
 (0)