Polymake Template Library (PTL): lib/core/include/GenericVector.h File Reference
Polymake Template Library (PTL)  4.2
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
 Generic type for vectors More...
 
class  pm::GenericVector
 Generic type for vectors 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 TVector >
const TVector & pm::convert_to (const GenericVector< TVector, TargetType > &v)
 explicit conversion of vector elements to another type
 
template<typename E >
auto pm::same_element_vector (E &&x, Int dim=0)
 Create a vector with all entries equal to the given element x.
 
template<typename E >
auto pm::ones_vector (Int dim=0)
 Create a vector with all entries equal to 1.
 
template<typename E >
auto pm::zero_vector (Int dim=0)
 Create a vector with all entries equal to 0.