StridedVectorExpression concept

Description

In addition to the DenseVectorExpression, StridedVectorExpression guarantees that the elements accessed by means of the element-access operator are all a stride apart scattered in memory.

Refinement of

VectorExpression

Associated types

const_iterator Guaranteed to be a value_type const *. The type is defined however because the StridedVectorCollection needs to define iterator anyhow for convenience.

Notation

Definitions

Valid expressions

Name Expression Type requirements Return type
Begin a.begin() value_type const *
End a.end() value_type const *
Stride a.stride() ptrdiff_t

Expression semantics

Name Expression Precondition Semantics Postcondition
Begin a.begin()
End a.end()
Stride a.stride()

Complexity guarantees

Invariants

Models

Notes