Polymake Template Library (PTL): lib/core/include/GenericVector.h File Reference
GenericVector.h File Reference

Classes

class  pm::Vector< E >
 Vector type class which holds the elements in a contiguous array More...
 
class  pm::SparseVector< E >
 
class  pm::GenericVector< TVector, E >
 Generic type for vectors More...
 
class  pm::FixedVector< E, TSize >
 Built-in array decorated as a vector. More...
 

Namespaces

 pm
 global namespace for all classes from the polymake project
 
 polymake
 namespace to be used for client code
 

Functions

template<typename TargetType , typename Vector >
const Vector & pm::convert_to (const GenericVector< Vector, TargetType > &v)
 explicit conversion of vector elements to another type
 
template<typename E >
const SameElementVector< const E & > pm::same_element_vector (const E &x, int dim=0)
 Create a vector with all entries equal to the given element x.
 
template<typename E >
const SameElementVector< const E & > pm::ones_vector (int dim=0)
 Create a vector with all entries equal to 1.
 
template<typename E >
const SameElementVector< const E & > pm::zero_vector (int dim=0)
 Create a vector with all entries equal to 0.
 
template<typename E , typename TSet >
std::enable_if< Set_with_dim_helper< unwary_t< TSet > >::value, const SameElementSparseVector< const unwary_t< TSet > &, const E & > >::type pm::same_element_sparse_vector (const GenericSet< TSet, int > &s, const E &x)