Home Online Manual
Top
Back: facetWidths
Forward: gorensteinIndex
FastBack: gfanlib_so
FastForward: Release Notes
Up: polymake_so
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.16.2.6 fVectorP

Syntax:
Polymake::fVectorP( polytope p )
Type:
intvec
Purpose:
the f-vector of p.
Note:
the computation works via an f-vector computation of a cone whose intersection with a hyperplan yields p, hence the return might not make sense intuitively if p is not bounded. However it can be regarded as the f-vector of p in (R')^n, where R' denotes the two point compactification of R and n is the dimension of the ambient space of p.
Example:
 
  LIB"polymake.lib";
==> Welcome to polymake
==> Copyright (c) 1997-2012
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
  intmat M[6][4]=1,1,1,2, 1,-1,-1,-2, 1,1,0,0, 1,-1,0,0, 1,0,1,0, 1,0,-1,0;
  polytope p = polytopeViaPoints(M);
  Polymake::fVectorP(p);
==> polymake: used package cddlib
==>   Implementation of the double description method of Motzkin et al.
==>   Copyright by Komei Fukuda.
==>   http://www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html
==> 
==> 6,12,8