Learn R Programming

volesti (version 1.1.2-9)

VpolytopeIntersection-class: An R class to represent the intersection of two V-polytopes

Description

An intersection of two V-polytopes is defined by the intersection of the two coresponding convex hulls.

Arguments

Details

V1

An \(m\times d\) numerical matrix that contains the vertices of the first V-polytope (row-wise).

V2

An \(q\times d\) numerical matrix that contains the vertices of the second V-polytope (row-wise).

volume

The volume of the polytope if it is known, \(NaN\) otherwise by default.

type

A character with default value 'VpolytopeIntersection', to declare the representation of the polytope.

Examples

Run this code
P1 = gen_simplex(2,'V')
P2 = gen_cross(2,'V')
P = VpolytopeIntersection(V1 = P1@V, V2 = P2@V)

Run the code above in your browser using DataLab