49 #ifndef AFF_SLICE_H_VERSION 51 #define AFF_SLICE_H_VERSION \ 81 typedef typename Tarray::Tshape
Tshape;
112 Mshape.collapse(dim, index);
118 typename Tshape::Tstepper st(
Mshape);
119 for(st.tofirst(); st.valid(); st.incr())
134 "ERROR (Slice): you use too many dimension-brackets!");
163 #endif // AFF_SLICE_H_VERSION (includeguard) Slice & operator()()
skip this dimension
Root namespace of library.
Slice & operator()(const Tdim &dim, const Tsubscript &index)
slice dimention dim
Trepresentation Mrepresentation
Representation to use.
aff::util::Slice< C > slice(const C &c)
Wrapper function to select correct type.
Slice(const Tarray &array)
Constructor takes a reference to an array.
C Tcontainer
Type of array to be handled.
Tarray::Tconst_pointer Tconst_pointer
Type of pointer to const element.
Slice & operator()(const Tsubscript &index)
slice next dimension
Slice & operator=(Tconst_reference value)
provide value assignment to a slice
void check_dim() const
check dimension
Tarray::Tshape Tshape
Type of shape to be used.
C Tarray
Type of array to be handled.
Tarray::Trepresentation Trepresentation
Type of reference to be used.
full template array class headers (prototypes)
Tarray array() const
return an array
Tarray::Tconst_reference Tconst_reference
Type of reference to const element.
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Tshape Mshape
Shape to process.
Tarray::Tconst_value Tconst_value
Type of const element.
Tdim Mdim
Next dimension to collapse.
unsigned short int Tdim
Type to hold an array dimensionality.
ptrdiff_t Tsubscript
Type to hold an array's subscript value.