Skip to content

Commit 85c32c9

Browse files
blegatmlubin
authored andcommitted
scale! -> rmul! (#220)
* scale! -> rmul! * Fix for Julia v0.6
1 parent 322d083 commit 85c32c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/SolverInterface/conic_to_lpqp.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function getreducedcosts(wrap::ConicToLPQPBridge)
259259
redcost[varidx] -= conedual[i]
260260
end
261261
if wrap.sense == :Max
262-
scale!(redcost,-1.0)
262+
Compat.rmul!(redcost, -1.0)
263263
end
264264
return redcost
265265
end
@@ -272,7 +272,7 @@ function getconstrduals(wrap::ConicToLPQPBridge)
272272
constrduals[i-offset] -= conedual[i]
273273
end
274274
if wrap.sense == :Max
275-
scale!(constrduals,-1.0)
275+
Compat.rmul!(constrduals, -1.0)
276276
end
277277
return constrduals
278278
end

0 commit comments

Comments
 (0)