Learn R Programming

volesti (version 1.0.0)

GenCross: Generator function for cross polytopes

Description

This function can be used to generate the \(d\)-dimensional cross polytope in H- or V-representation.

Usage

GenCross(dimension, repr)

Arguments

dimension

The dimension of the cross polytope.

repr

A string to declare the representation. It has to be 'H' for H-representation or 'V' for V-representation.

Value

A polytope class representing a cross polytope in H- or V-representation.

Examples

Run this code
# 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