powered by
This function can be used to generate the \(d\)-dimensional cross polytope in H- or V-representation.
GenCross(dimension, repr)
The dimension of the cross polytope.
A string to declare the representation. It has to be 'H' for H-representation or 'V' for V-representation.
'H'
'V'
A polytope class representing a cross polytope in H- or V-representation.
# NOT RUN { # generate a 10-dimensional cross polytope in H-representation P = GenCross(10, 'H') # generate a 15-dimension cross polytope in V-representation P = GenCross(15, 'V') # }
Run the code above in your browser using DataLab