|
Polymake Template Library (PTL)
3.0.6
|
Built-in array decorated as a vector. More...


Public Types | |
| typedef E | element_type |
| element type | |
| typedef std::conditional< is_sparse, SparseVector< E >, Vector< E > >::type | persistent_type |
| persistent type | |
| typedef Generic< FixedVector< E, TSize > >::top_type | top_type |
| top type | |
| typedef GenericVector | generic_type |
| generic type | |
Public Member Functions | |
| FixedVector (int=0) | |
| create empty vector | |
| FixedVector (int, const E &init) | |
| create vector of given length with constant element | |
| template<typename Iterator > | |
| FixedVector (int, Iterator src) | |
| create vector from iterator | |
| template<typename TVector > | |
| FixedVector (const GenericVector< TVector, E > &v) | |
| create vector from GenericVector | |
| void | clear () |
| fill with zeroes | |
| void | remove0s () |
| remove all zero elements which might have been overseen in some previous operation | |
| top_type & | operator+= (const GenericVector< TVector2 > &v) |
| top_type & | operator-= (const GenericVector< TVector2 > &v) |
| top_type & | operator*= (const Right &r) |
| multiply with an element | |
| top_type & | operator/= (const Right &r) |
| appending an element | |
| 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 | |
| std::enable_if< isomorphic_to_container_of< IndexSet, int >::value, IndexedSlice< unwary_t< FixedVector< E, TSize > > &, const typename Concrete< IndexSet >::type & > >::type | slice (const IndexSet &indices) |
Static Public Attributes | |
| static const bool | is_sparse |
| determine if the persistent type is sparse | |
Built-in array decorated as a vector.
|
inlineinherited |
adding a vector TODO: check whether addition is defined for both element types
|
inlineinherited |
subtracting a vector TODO: check whether subtraction is defined for both element types
|
inlineinherited |
Select a vector slice consisting of elements with given indices. The last variant selects a contiguous range of indices beginning with start. size==-1 means up to the end of the vector. The const variants of these methods create immutable slice objects. The indices must lie in the valid range.
1.8.11