HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vt_WrapArray Namespace Reference

Functions

template<typename T >
object getitem_ellipsis (VtArray< T > const &self, object idx)
 
template<typename T >
object getitem_index (VtArray< T > const &self, int idx)
 
template<typename T >
object getitem_slice (VtArray< T > const &self, slice idx)
 
template<typename T , typename S >
void setArraySlice (VtArray< T > &self, S value, slice::range< T * > &range, size_t setSize, bool tile=false)
 
template<typename T >
void setArraySlice (VtArray< T > &self, slice idx, object value, bool tile=false)
 
template<typename T >
void setitem_ellipsis (VtArray< T > &self, object idx, object value)
 
template<typename T >
void setitem_index (VtArray< T > &self, int idx, object value)
 
template<typename T >
void setitem_slice (VtArray< T > &self, slice idx, object value)
 
template<class T >
VT_API string GetVtArrayName ()
 
 HBOOST_PP_SEQ_FOR_EACH (MAKE_STREAM_FUNC,~, VT_FLOATING_POINT_BUILTIN_VALUE_TYPES) static unsigned int Vt_ComputeEffectiveRankAndLastDimSize(Vt_ShapeData const *sd
 
 if (rank==1) return rank
 
 if (remainder) rank
 
template<typename T >
string __repr__ (VtArray< T > const &self)
 
template<typename T >
VtArray< T > * VtArray__init__ (object const &values)
 
template<typename T >
VtArray< T > * VtArray__init__2 (unsigned int size, object const &values)
 

Variables

size_t *lastDimSize unsigned int rank = sd->GetRank()
 
size_t divisor
 
size_t remainder = divisor ? sd->totalSize % divisor : 0
 
lastDimSize = divisor ? sd->totalSize / divisor : 0
 

Function Documentation

template<typename T >
string Vt_WrapArray::__repr__ ( VtArray< T > const self)

Definition at line 349 of file wrapArray.h.

template<typename T >
object Vt_WrapArray::getitem_ellipsis ( VtArray< T > const self,
object  idx 
)

Definition at line 90 of file wrapArray.h.

template<typename T >
object Vt_WrapArray::getitem_index ( VtArray< T > const self,
int  idx 
)

Definition at line 102 of file wrapArray.h.

template<typename T >
object Vt_WrapArray::getitem_slice ( VtArray< T > const self,
slice  idx 
)

Definition at line 111 of file wrapArray.h.

template<class T >
VT_API string Vt_WrapArray::GetVtArrayName ( )
Vt_WrapArray::HBOOST_PP_SEQ_FOR_EACH ( MAKE_STREAM_FUNC  ,
,
VT_FLOATING_POINT_BUILTIN_VALUE_TYPES   
) const
Vt_WrapArray::if ( rank  = =1)
Vt_WrapArray::if ( remainder  )
template<typename T , typename S >
void Vt_WrapArray::setArraySlice ( VtArray< T > &  self,
value,
slice::range< T * > &  range,
size_t  setSize,
bool  tile = false 
)

Definition at line 132 of file wrapArray.h.

template<typename T >
void Vt_WrapArray::setArraySlice ( VtArray< T > &  self,
slice  idx,
object  value,
bool  tile = false 
)

Definition at line 175 of file wrapArray.h.

template<typename T >
void Vt_WrapArray::setitem_ellipsis ( VtArray< T > &  self,
object  idx,
object  value 
)

Definition at line 243 of file wrapArray.h.

template<typename T >
void Vt_WrapArray::setitem_index ( VtArray< T > &  self,
int  idx,
object  value 
)

Definition at line 255 of file wrapArray.h.

template<typename T >
void Vt_WrapArray::setitem_slice ( VtArray< T > &  self,
slice  idx,
object  value 
)

Definition at line 263 of file wrapArray.h.

template<typename T >
VtArray<T>* Vt_WrapArray::VtArray__init__ ( object const values)

Definition at line 395 of file wrapArray.h.

template<typename T >
VtArray<T>* Vt_WrapArray::VtArray__init__2 ( unsigned int  size,
object const values 
)

Definition at line 407 of file wrapArray.h.

Variable Documentation

size_t Vt_WrapArray::divisor
Initial value:
sd->otherDims, sd->otherDims + rank-1,
1, [](size_t x, size_t y) { return x * y; })
GLint GLint GLint GLint GLint x
Definition: glew.h:1252
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1252
void accumulate(const IterT &iter, XformOp &op, bool threaded=true)
size_t *lastDimSize unsigned int rank
Definition: wrapArray.h:331

Definition at line 335 of file wrapArray.h.

* Vt_WrapArray::lastDimSize = divisor ? sd->totalSize / divisor : 0

Definition at line 340 of file wrapArray.h.

return Vt_WrapArray::rank = sd->GetRank()

Definition at line 331 of file wrapArray.h.

size_t Vt_WrapArray::remainder = divisor ? sd->totalSize % divisor : 0

Definition at line 339 of file wrapArray.h.