tests/allfaces.R

 library(rcdd)

 hrep <- rbind(c(0, 1,  1,  1, -1),
               c(0, 1,  1, -1, -1),
               c(0, 1, -1, -1, -1),
               c(0, 1, -1,  1, -1),
               c(0, 0,  0,  0,  1))

 qout <- allfaces(d2q(hrep))
 print(qout)

 dout <- allfaces(hrep)

 identical(qout$dimension, dout$dimension)
 identical(qout$active.set, dout$active.set)
 all.equal(lapply(qout$relative.interior.point, FUN = q2d),
     dout$relative.interior.point)

Try the rcdd package in your browser

Any scripts or data that you put into this service are public.

rcdd documentation built on April 25, 2023, 1:09 a.m.