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.
linearization_function
1 parent faa6869 commit abf799eCopy full SHA for abf799e
src/linearization.jl
@@ -64,6 +64,25 @@ function linearization_function(
64
ics[x] = Symbolics.COMMON_ZERO
65
end
66
67
+
68
+ _inputs = SymbolicT[]
69
+ _outputs = SymbolicT[]
70
+ for x in inputs
71
+ if SU.is_array_shape(SU.shape(x))
72
+ append!(_inputs, vec(collect(x)::Array{SymbolicT})::Vector{SymbolicT})
73
+ else
74
+ push!(_inputs, x)
75
+ end
76
77
+ for x in outputs
78
79
+ append!(_outputs, vec(collect(x)::Array{SymbolicT})::Vector{SymbolicT})
80
81
+ push!(_outputs, x)
82
83
84
+ inputs = _inputs
85
+ outputs = _outputs
86
sys = ssys
87
88
if initializealg === nothing
0 commit comments