Skip to content

Commit

Permalink
Translate 0-based indices to Julia's 1-based in removevredundancy!
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Jan 18, 2025
1 parent 67dbb7c commit d385984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polyhedron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function Polyhedra.removevredundancy!(p::Polyhedron)
detectvlinearity!(p)
ext = getext(p)
extm = getextm(p, :AlmostFresh) # FIXME does it need to be fresh ?
redset = redund(extm)
redset = BitSet(redund(extm) .+ 1)
nonred = setdiff(BitSet(1:size(ext.R, 1)), redset)
nonred = collect(setdiff(nonred, ext.linset))
lin = collect(ext.linset)
Expand Down

0 comments on commit d385984

Please sign in to comment.