pm::GenericVector< _Vector, E > Class Template Reference

Inheritance diagram for pm::GenericVector< _Vector, E >:

List of all members.


Public Types

typedef E element_type
 element type
typedef if_else< is_sparse,
SparseVector< E >, Vector< E >
>::type 
persistent_type
 persistent type
typedef Generic< _Vector >
::top_type 
top_type
 top type
typedef GenericVector generic_type
 generic type

Public Member Functions

template<typename Vector2>
top_type & operator+= (const GenericVector< Vector2 > &v)
 adding a GenericVector
template<typename Vector2>
top_type & operator-= (const GenericVector< Vector2 > &v)
 subtracting a GenericVector
template<typename Right>
top_type & operator*= (const Right &r)
 multiply with an element
template<typename Right>
top_type & operator/= (const Right &r)
 appending an element
template<typename Right>
top_type & div_exact (const Right &r)
 divide by an element
top_type & dehomogenize ()
 divides by the first element
top_type & dehomogenize_trop ()
 subtracts first element
bool operator! () const
 compare with an implicit zero vector
void remove0s ()
 remove all zero elements which might have been overseen in some previous operation

Static Public Attributes

static const bool is_sparse = check_container_feature<_Vector,sparse>::value
 determine if the persistent type is sparse

Detailed Description

template<typename _Vector, typename E = typename _Vector::element_type>
class pm::GenericVector< _Vector, E >

Generic type for vectors
The documentation for this class was generated from the following file:
  • include/core/polymake/GenericVector.h
Generated on Wed Mar 30 23:31:46 2011 for Polymake Template Library (PTL) by doxygen 1.5.6