makeV | R Documentation |
Construct V-representation of convex polyhedron.
See scdd
for description of valid representations.
makeV(points, rays, lines, x = NULL)
addVpoints(points, x)
addVrays(rays, x)
addVlines(lines, x)
points |
numerical or character matrix for points. If vector, treated as matrix with one row. Each row is one point. |
rays |
numerical or character matrix for points. If vector, treated as matrix with one row. Each row represents one ray consisting of all nonnegative multiples of the vector which is the row. |
lines |
numerical or character matrix for points. If vector, treated as matrix with one row. Each row represents one line consisting of all scalar multiples of the vector which is the row. |
x |
if not |
In makeV
the arguments points
and rays
and lines
may be missing.
a valid V-representation that can be handed to scdd
.
The input representation may
have type "character"
in which case its elements are interpreted
as unlimited precision rational numbers. They consist of an optional
minus sign, a string of digits of any length (the numerator),
a slash, and another string of digits of any length (the denominator).
The denominator must be positive. If the denominator is one, the
slash and the denominator may be omitted. This package
provides several functions (see ConvertGMP and ArithmeticGMP)
for conversion back and forth between R floating point numbers and rationals
and for arithmetic on GMP rationals.
Arguments may be a mix of numeric and character in which case all are converted to GMP rationals (character) and the output is GMP rational.
scdd
, validcdd
d <- 4
n <- 7
qux <- makeV(points = matrix(rnorm(n * d), ncol = d))
out <- scdd(qux)
out$output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.