Polymake Template Library (PTL)  4.2
Classes | Namespaces | Functions
GenericVector.h File Reference

Classes

class  pm::GenericVector< TVector, E >
 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.