48 #ifndef AFF_STRIDEDSTEPPER_H_VERSION 50 #define AFF_STRIDEDSTEPPER_H_VERSION \ 51 "AFF_STRIDEDSTEPPER,H_H V1.3" 131 #endif // AFF_STRIDEDSTEPPER_H_VERSION (includeguard) StridedStepper & decr()
decrement offset - return reference to itself
Root namespace of library.
Shape for a rectangular array layout.
Tshape::TIndexVec TIndexVec
type of stride array
aff::Strided Tshape
Type of Shape corresponding class.
StridedStepper(const Strided &strided)
only non-copy constructor
Tsubscript Mfirst_offset
store current bounds to reduce execution time
Tsubscript Mcurrent
hold current position offset to memory
const Tsubscript & index(const Tdim &i) const
return current index vector for array access
bool more() const
returns true if there are more elements in incr-direction
Tsubscript last_offset() const
last mapped position
StridedStepper & incr()
increment offset - return reference to itself
const TIndexVec & index() const
return current index vector for array access
const Tsubscript & first(const Tsubscript &i) const
first index of dimension
A very basic rigid array class (with deep inline copy).
TIndexVec Mindex
hold current index vector
StridedStepper & tolast()
set current element index to the last - return reference to itself
shape of s strided array (prototypes)
TSizeVec Mcarry
hold carry values
Tshape::TSizeVec TSizeVec
type of limit arrays
const Tsubscript & current() const
return current index value for Representation access
Tsubscript first_offset() const
first mapped position
unsigned short int Tdim
Type to hold an array dimensionality.
StridedStepper & tofirst()
set current element index to the first - return reference to itself
A stepper for all strided shapes.
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
const bool & valid() const
valid if not passed end or beginning
bool less() const
returns true if there are more elements in decr-direction
const Tshape & Mshape
hold reference to shape
const Tsubscript & last(const Tsubscript &i) const
last index of dimension