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

Classes

class  pm::GenericVector< TVector, E >
 Generic type for vectors More...
 

Namespaces

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

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.