size() of the sparse_strided_view is equal to
the nnz() of its source.
| Parameter | Description | Default |
|---|---|---|
| SparseVectorCollection | the type of the source-vector |
| SparseVectorCollection | Must be a model of SparseVectorCollection |
| Member | Where defined | Comment |
|---|---|---|
| size_type | VectorExpression | Defined as SparseVectorCollection::nnz_type |
| value_type | VectorExpression | Defined as SparseCollection::value_type |
| const_reference | VectorExpression | |
| reference | Collection | Equal to const_reference unless the SparseVectorCollection is really a
Collection (and not just an Expression) in which case it is defined as
value_type&.
|
| source_type | View | |
| sparse_strided_view(SparseCollection const&) | View | |
| sparse_strided_view(sparse_strided_view const&) | Assignable | Copy constructor |
| void operator=(sparse_strided_view const&) | Assignable | Copies the contents of the view. Thus this will not make the view point to another source |
| bool operator==(sparse_strided_view const&) const | EqualityComparable | Compares the content of the underlying collection |
| bool operator!=(sparse_strided_view const&) const | EqualityComparable | |
size_type size() const |
VectorExpression | Equal to source().nnz() |
| const_reference operator[]( size_type ) const | DenseExpression | Returns source().nz(i) |
| reference operator[]( size_type ) | DenseCollection | Returns source().nz(i) |
| source_type& source() | UnaryExpression | |
value_type const * begin() const |
StridedVectorExpression | |
value_type * begin() |
StridedVectorCollection | |
value_type const * end() const |
StridedVectorExpression | |
value_type * end() |
StridedVectorCollection |