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 May 29, 2024, 2:21 a.m.