Vector type class which holds the elements in a contiguous array
More...
|
|
| Vector () |
| | create as empty
|
| |
|
| Vector (int n) |
| | create vector of length n
|
| |
|
int | size () const |
| | number of elements
|
| |
|
void | clear () |
| | truncate to zero size
|
| |
|
void | resize (int n) |
| | change the size, initialize appended elements with default constructor
|
| |
|
template<typename Vector2 , typename E2 , typename = typename std::enable_if<can_initialize<E2, E>::value>::type> |
| Vector & | operator|= (const GenericVector< Vector2, E2 > &v) |
| | append a GenericVector
|
| |
|
template<typename E2 , typename = typename std::enable_if<can_initialize<E2, E>::value>::type> |
| Vector & | operator|= (E2 &&r) |
| | append an element
|
| |
|
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< Vector< E > > &, const typename Concrete< IndexSet >::type & > >::type | slice (const IndexSet &indices) |
| |
|
|
static const bool | is_sparse |
| | determine if the persistent type is sparse
|
| |
template<typename E>
class pm::Vector< E >
Vector type class which holds the elements in a contiguous array
adding a vector TODO: check whether addition is defined for both element types
subtracting a vector TODO: check whether subtraction is defined for both element types
| std::enable_if<isomorphic_to_container_of<IndexSet, int>::value, IndexedSlice<unwary_t<Vector< E > >&, const typename Concrete<IndexSet>::type&> >::type pm::GenericVector< Vector< E > , E >::slice |
( |
const IndexSet & |
indices | ) |
|
|
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: