Skip to content

Commit 375deab

Browse files
committed
Add support for StaticArrays
1 parent 8697a5f commit 375deab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/linear_eq.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ function linear_hull(M::AbstractMatrix, r::AbstractArray)
166166
H2 = C .* Z
167167
for i in 1:n
168168
if Z[i] < 0
169-
H2[i] = Z[i]
169+
#H2[i] = Z[i]
170+
if (typeof(M) <: SArray)
171+
H2 = setindex(H2, Z[i], i)
172+
else
173+
H2[i] = Z[i]
174+
end
170175
end
171176
end
172177
H = interval.(min.(H1, H2), max.(H1, H2))

0 commit comments

Comments
 (0)