Skip to content

Commit

Permalink
scale! -> rmul! (#220)
Browse files Browse the repository at this point in the history
* scale! -> rmul!

* Fix for Julia v0.6
  • Loading branch information
blegat authored and mlubin committed Aug 29, 2018
1 parent 322d083 commit 85c32c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SolverInterface/conic_to_lpqp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function getreducedcosts(wrap::ConicToLPQPBridge)
redcost[varidx] -= conedual[i]
end
if wrap.sense == :Max
scale!(redcost,-1.0)
Compat.rmul!(redcost, -1.0)
end
return redcost
end
Expand All @@ -272,7 +272,7 @@ function getconstrduals(wrap::ConicToLPQPBridge)
constrduals[i-offset] -= conedual[i]
end
if wrap.sense == :Max
scale!(constrduals,-1.0)
Compat.rmul!(constrduals, -1.0)
end
return constrduals
end
Expand Down

0 comments on commit 85c32c9

Please sign in to comment.