Skip to content

Commit 76180bb

Browse files
committed
rename variable
1 parent 16bd776 commit 76180bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interfaces/AbstractPolyhedron_functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ end
534534
function _linear_map_hrep(M::AbstractMatrix, P::AbstractPolyhedron, algo::LinearMapElimination)
535535
m, n = size(M)
536536
N = promote_type(eltype(M), eltype(P))
537-
₋Id_m = Matrix(-one(N) * I, m, m)
537+
Id_neg = Matrix(-one(N) * I, m, m)
538538
backend = algo.backend
539539
method = algo.method
540540

@@ -547,7 +547,7 @@ function _linear_map_hrep(M::AbstractMatrix, P::AbstractPolyhedron, algo::Linear
547547
else
548548
Ax_leq_b = [Polyhedra.HalfSpace(vcat(zeros(N, m), Vector(c.a)), c.b) for c in clist]
549549
end
550-
y_eq_Mx = [Polyhedra.HyperPlane(vcat(₋Id_m[i, :], Vector(M[i, :])), zero(N)) for i in 1:m]
550+
y_eq_Mx = [Polyhedra.HyperPlane(vcat(Id_neg[i, :], Vector(M[i, :])), zero(N)) for i in 1:m]
551551

552552
Phrep = Polyhedra.hrep(y_eq_Mx, Ax_leq_b)
553553
Phrep = polyhedron(Phrep, backend) # define concrete subtype

0 commit comments

Comments
 (0)