blitz Version 1.0.2
Loading...
Searching...
No Matches
blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype > Class Template Reference

#include <tv2fastiter.h>

Inheritance diagram for blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >:
Inheritance graph
Collaboration diagram for blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >:
Collaboration graph

Classes

class  SliceInfo
 
struct  tvresult
 For an iterator, the vectorized result for width N is always a TinyVector<T_numtype, N>. More...
 

Public Types

typedef P_numtype T_numtype
 
typedef opType< T_numtype >::T_optype T_optype
 
typedef asET< T_numtype >::T_wrapped T_typeprop
 
typedef unwrapET< T_typeprop >::T_unwrapped T_result
 
typedef ETBase< FastTV2Iterator< T_numtype, simdTypes< T_numtype >::vecWidth > > T_tvtypeprop
 Result type for fastRead_tv is a FastTVIterator.
 
typedef unwrapET< T_tvtypeprop >::T_unwrapped T_tvresult
 
typedef TinyVector< T_numtype, N_lengthT_vector
 
typedef FastTV2IteratorBase< P_numtype, N_length, P_arraytypeT_iterator
 
typedef const T_vectorT_ctorArg1
 
typedef int T_ctorArg2
 
typedef FastTV2CopyIterator< P_numtype, N_lengthT_range_result
 

Public Member Functions

 FastTV2IteratorBase (const T_iterator &x)
 
void operator= (const T_iterator &x)
 
 FastTV2IteratorBase (const T_vector &array)
 
 ~FastTV2IteratorBase ()
 
T_numtype operator() (int i) const
 
T_result operator() (TinyVector< int, 1 > i) const
 
int ascending (const int r) const
 
int ordering (const int r) const
 
int lbound (const int r) const
 
int ubound (const int r) const
 
T_result first_value () const
 
T_result operator* () const
 
T_result operator[] (int i) const
 
T_result fastRead (diffType i) const
 
template<int N>
tvresult< N >::Type fastRead_tv (diffType i) const
 
bool isVectorAligned (diffType offset) const
 Since data_ is simd aligned by construction, we just have to check the offest.
 
int suggestStride (int r) const
 
bool isStride (int r, diffType stride) const
 
void push (int position)
 
void pop (int position)
 
void advance ()
 
void advance (int n)
 
void loadStride (int r)
 
const T_numtype *restrict data () const
 
const T_vectorarray () const
 
void _bz_setData (const T_numtype *ptr)
 
void _bz_offsetData (sizeType i)
 
void _bz_offsetData (sizeType offset, int dim)
 
void _bz_offsetData (sizeType offset1, int dim1, sizeType offset2, int dim2)
 
int stride () const
 
bool isUnitStride (int r) const
 
bool isUnitStride () const
 
void advanceUnitStride ()
 
bool canCollapse (int outerLoopRank, int innerLoopRank) const
 
template<typename T_shape >
bool shapeCheck (const T_shape &s) const
 
T_result shift (int offset, int dim) const
 
T_result shift (int offset1, int dim1, int offset2, int dim2) const
 
void prettyPrint (std::string &str, prettyPrintFormat &format) const
 

Static Public Attributes

static const int numArrayOperands = 0
 
static const int numTVOperands = 1
 
static const int numTMOperands = 0
 
static const int numIndexPlaceholders = 0
 
static const int minWidth = simdTypes<T_numtype>::vecWidth
 
static const int maxWidth = simdTypes<T_numtype>::vecWidth
 
static const int rank_ = 1
 

Protected Attributes

const T_numtype *restrict data_
 
P_arraytype array_
 
ConstPointerStack< T_numtype, rank_stack_
 

Static Protected Attributes

static const diffType stride_ =1
 

Member Typedef Documentation

◆ T_ctorArg1

◆ T_ctorArg2

◆ T_iterator

◆ T_numtype

◆ T_optype

◆ T_range_result

◆ T_result

◆ T_tvresult

◆ T_tvtypeprop

Result type for fastRead_tv is a FastTVIterator.

This is only used for mixed TV/Array expressions.

◆ T_typeprop

◆ T_vector

Constructor & Destructor Documentation

◆ FastTV2IteratorBase() [1/2]

template<typename P_numtype , int N_length, typename P_arraytype >
blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::FastTV2IteratorBase ( const T_iterator & x)
inline

◆ FastTV2IteratorBase() [2/2]

◆ ~FastTV2IteratorBase()

Member Function Documentation

◆ _bz_offsetData() [1/3]

◆ _bz_offsetData() [2/3]

template<typename P_numtype , int N_length, typename P_arraytype >
void blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::_bz_offsetData ( sizeType offset,
int dim )
inline

◆ _bz_offsetData() [3/3]

template<typename P_numtype , int N_length, typename P_arraytype >
void blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::_bz_offsetData ( sizeType offset1,
int dim1,
sizeType offset2,
int dim2 )
inline

◆ _bz_setData()

◆ advance() [1/2]

◆ advance() [2/2]

◆ advanceUnitStride()

◆ array()

◆ ascending()

template<typename P_numtype , int N_length, typename P_arraytype >
int blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::ascending ( const int r) const
inline

◆ canCollapse()

template<typename P_numtype , int N_length, typename P_arraytype >
bool blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::canCollapse ( int outerLoopRank,
int innerLoopRank ) const
inline

◆ data()

◆ fastRead()

◆ fastRead_tv()

◆ first_value()

◆ isStride()

◆ isUnitStride() [1/2]

◆ isUnitStride() [2/2]

◆ isVectorAligned()

template<typename P_numtype , int N_length, typename P_arraytype >
bool blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::isVectorAligned ( diffType offset) const
inline

Since data_ is simd aligned by construction, we just have to check the offest.

References true.

◆ lbound()

◆ loadStride()

◆ operator()() [1/2]

◆ operator()() [2/2]

◆ operator*()

◆ operator=()

◆ operator[]()

◆ ordering()

◆ pop()

◆ prettyPrint()

◆ push()

◆ shapeCheck()

◆ shift() [1/2]

◆ shift() [2/2]

◆ stride()

◆ suggestStride()

◆ ubound()

Member Data Documentation

◆ array_

◆ data_

◆ maxWidth

◆ minWidth

◆ numArrayOperands

template<typename P_numtype , int N_length, typename P_arraytype >
const int blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::numArrayOperands = 0
static

◆ numIndexPlaceholders

template<typename P_numtype , int N_length, typename P_arraytype >
const int blitz::FastTV2IteratorBase< P_numtype, N_length, P_arraytype >::numIndexPlaceholders = 0
static

◆ numTMOperands

◆ numTVOperands

◆ rank_

◆ stack_

◆ stride_


The documentation for this class was generated from the following file: