Skip to content

Commit

Permalink
Update src/HPolyhedron.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mforets authored Jan 16, 2019
1 parent 4373c37 commit 675a995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HPolyhedron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function σ(d::AbstractVector{N}, P::HPoly{N}) where {N<:Real}
end

@inline function _to_minus_vector(d::SparseVector{N}) where {N}
c = zeros(length(d))
c = zeros(N, length(d))
for (ni, i) in enumerate(d.nzind)
@inbounds c[i] = -d.nzval[ni]
end
Expand Down

0 comments on commit 675a995

Please sign in to comment.