gen_cross: Generator function for cross polytopes

Description Usage Arguments Value Examples

View source: R/gen_cross.R

Description

This function generates the d-dimensional cross polytope in H- or V-representation.

Usage

1
gen_cross(dimension, representation = "H")

Arguments

dimension

The dimension of the cross polytope.

representation

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

Value

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

Examples

1
2
3
4
5
# generate a 10-dimensional cross polytope in H-representation
P = gen_cross(5, 'H')

# generate a 15-dimension cross polytope in V-representation
P = gen_cross(15, 'V')

volesti documentation built on July 14, 2021, 5:11 p.m.