Vector type class which holds the elements in a contiguous array
More...
#include <Vector.h>
|
| Vector () |
| create as empty
|
|
| Vector (Int n) |
| create vector of length n
|
|
void | resize (Int n) |
| change the size, initialize appended elements with default constructor
|
|
Int | size () const |
| number of elements
|
|
void | clear () |
| truncate to zero size
|
|
template<typename Vector2, typename E2, typename = std::enable_if_t<can_initialize<E2, E>::value>> |
Vector & | operator|= (const GenericVector< Vector2, E2 > &v) |
| append a GenericVector
|
|
template<typename E2, typename = std::enable_if_t<can_initialize<E2, E>::value>> |
Vector & | operator|= (E2 &&r) |
| append an element
|
|
void | remove0s () |
| remove all zero elements which might have been overseen in some previous operation
|
|
void | remove0s () |
| remove all zero elements which might have been overseen in some previous operation
|
|
void | remove0s () |
| remove all zero elements which might have been overseen in some previous operation
|
|
top_type & | negate () |
| negate elements in place
|
|
top_type & | negate () |
| negate elements in place
|
|
top_type & | negate () |
| negate elements in place
|
|
top_type & | dehomogenize () |
| divide by the first element
|
|
top_type & | dehomogenize () |
| divide by the first element
|
|
top_type & | dehomogenize () |
| divide by the first element
|
|
top_type & | dehomogenize_trop () |
| subtracts first element
|
|
top_type & | dehomogenize_trop () |
| subtracts first element
|
|
top_type & | dehomogenize_trop () |
| subtracts first element
|
|
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > | slice (IndexSetRef &&indices, std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t >=nullptr) const & |
|
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > | slice (IndexSetRef &&indices, std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t >=nullptr) const & |
|
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > | slice (IndexSetRef &&indices, std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t >=nullptr) const & |
|
|
static constexpr bool | is_sparse |
| determine if the persistent type is sparse
|
|
static constexpr bool | is_sparse |
| determine if the persistent type is sparse
|
|
static constexpr bool | is_sparse |
| determine if the persistent type is sparse
|
|
template<typename E>
class polymake::Vector< E >
Vector type class which holds the elements in a contiguous array
◆ slice() [1/3]
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > pm::GenericVector< TVector, E >::slice |
( |
IndexSetRef && | indices, |
|
|
std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t > | = nullptr ) const & |
|
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.
◆ slice() [2/3]
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > pm::GenericVector< TVector, E >::slice |
( |
IndexSetRef && | indices, |
|
|
std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t > | = nullptr ) const & |
|
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.
◆ slice() [3/3]
IndexedSlice< const typename Unwary< Vector< E > >::type &, typename final_index_set< IndexSetRef >::type > pm::GenericVector< TVector, E >::slice |
( |
IndexSetRef && | indices, |
|
|
std::enable_if_t< isomorphic_to_container_of< pure_type_t< IndexSetRef >, Int >::value, std::nullptr_t > | = nullptr ) const & |
|
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.
The documentation for this class was generated from the following files: