UT_VectorT< T > Class Template Reference

#include <UT_Vector.h>

List of all members.

Public Member Functions

 UT_VectorT ()
 UT_VectorT (int nl, int nh)
 UT_VectorT (const UT_VectorT< T > &v)
 ~UT_VectorT ()
void init (int nl, int nh)
void subvector (const UT_VectorT< T > &v, int nl, int nh)
void assign (const fpreal32 *data, int nl, int nh)
void assign (const fpreal64 *data, int nl, int nh)
int isInit () const
void zero (int nl, int nh)
void zero ()
void getSubvector2 (UT_Vector2 &v, int idx) const
void setSubvector2 (int idx, const UT_Vector2 &v)
void getSubvector3 (UT_Vector3 &v, int idx) const
void setSubvector3 (int idx, const UT_Vector3 &v)
void getSubvector4 (UT_Vector4 &v, int idx) const
void setSubvector4 (int idx, const UT_Vector4 &v)
int getNL () const
int getNH () const
int length () const
bool shouldMultiThread () const
void getPartialRange (int &start, int &end, const UT_JobInfo &info) const
void changeNL (int nl)
void setShallowNL (int nl)
void setShallowNH (int nh)
T & operator() (int i)
operator() (int i) const
norm (int type=2) const
norm2 () const
distance2 (const UT_VectorT< T > &v) const
 THREADED_METHOD (UT_VectorT, shouldMultiThread(), neg) void negPartial(const UT_JobInfo &info)
 THREADED_METHOD1 (UT_VectorT, shouldMultiThread(), negPlus, const UT_VectorT< T > &, v) void negPlusPartial(const UT_VectorT< T > &v
 THREADED_METHOD2 (UT_VectorT, shouldMultiThread(), addScaledVec, T, s, const UT_VectorT< T > &, v) void addScaledVecPartial(T s
 THREADED_METHOD3 (UT_VectorT, shouldMultiThread(), addScaledVecNorm2, T, s, const UT_VectorT< T > &, v, fpreal64 *, norm2) void addScaledVecNorm2Partial(T s
 THREADED_METHOD2 (UT_VectorT< T >, shouldMultiThread(), scaleAddVec, T, s, const UT_VectorT< T > &, v) void scaleAddVecPartial(T s
 THREADED_METHOD2 (UT_VectorT< T >, shouldMultiThread(), multAndSet, const UT_VectorT< T > &, a, const UT_VectorT< T > &, b) void multAndSetPartial(const UT_VectorT< T > &a
dot (const UT_VectorT< T > &v) const
UT_VectorToperator= (const UT_VectorT< T > &v)
UT_VectorToperator+= (const UT_VectorT< T > &v)
UT_VectorToperator-= (const UT_VectorT< T > &v)
UT_VectorToperator*= (const UT_VectorT< T > &v)
UT_VectorToperator/= (const UT_VectorT< T > &v)
UT_VectorToperator*= (T scalar)
UT_VectorToperator/= (T scalar)
bool isEqual (const UT_VectorT< T > &v, int64 ulps)
ostream & save (ostream &os) const
T * getData () const
template<>
UT_VectorT< fpreal32 > & operator+= (const UT_VectorT< fpreal32 > &v)
template<>
UT_VectorT< fpreal32 > & operator-= (const UT_VectorT< fpreal32 > &v)
template<>
UT_VectorT< fpreal32 > & operator*= (const UT_VectorT< fpreal32 > &v)
template<>
UT_VectorT< fpreal32 > & operator/= (const UT_VectorT< fpreal32 > &v)
template<>
UT_VectorT< fpreal32 > & operator*= (fpreal32 scalar)
template<>
UT_VectorT< fpreal32 > & operator/= (fpreal32 scalar)

Public Attributes

const UT_JobInfoinfo
const UT_VectorT< T > & v
const UT_VectorT< T > const
UT_JobInfo
info
const UT_VectorT< T > fpreal64norm2
const UT_VectorT< T > fpreal64
const UT_JobInfo
info
const UT_VectorT< T > & b

Protected Member Functions

 THREADED_METHOD2_CONST (UT_VectorT, shouldMultiThread(), normInternal, fpreal64 *, result, int, type) void normInternalPartial(fpreal64 *result
 THREADED_METHOD2_CONST (UT_VectorT, shouldMultiThread(), distance2Internal, fpreal64 *, result, const UT_VectorT< T > &, v) void distance2InternalPartial(fpreal64 *result
 THREADED_METHOD2_CONST (UT_VectorT, shouldMultiThread(), dotInternal, fpreal64 *, result, const UT_VectorT< T > &, v) void dotInternalPartial(fpreal64 *result

Protected Attributes

int type
int const UT_JobInfo &info const
const UT_VectorT< T > const
UT_JobInfo &info 
const

Friends

ostream & operator<< (ostream &os, const UT_VectorT< T > &v)


Detailed Description

template<typename T>
class UT_VectorT< T >

Definition at line 42 of file UT_Vector.h.


Constructor & Destructor Documentation

template<typename T>
UT_VectorT< T >::UT_VectorT (  )  [inline]

Definition at line 46 of file UT_Vector.h.

template<typename T >
UT_VectorT< T >::UT_VectorT ( int  nl,
int  nh 
) [inline]

Definition at line 40 of file UT_Vector.C.

template<typename T >
UT_VectorT< T >::UT_VectorT ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 48 of file UT_Vector.C.

template<typename T >
UT_VectorT< T >::~UT_VectorT (  )  [inline]

Definition at line 60 of file UT_Vector.C.


Member Function Documentation

template<typename T >
void UT_VectorT< T >::assign ( const fpreal64 data,
int  nl,
int  nh 
) [inline]

Definition at line 106 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::assign ( const fpreal32 data,
int  nl,
int  nh 
) [inline]

Definition at line 98 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::changeNL ( int  nl  )  [inline]

Definition at line 218 of file UT_Vector.C.

template<typename T >
T UT_VectorT< T >::distance2 ( const UT_VectorT< T > &  v  )  const [inline]

Definition at line 305 of file UT_Vector.C.

template<typename T >
T UT_VectorT< T >::dot ( const UT_VectorT< T > &  v  )  const [inline]

Definition at line 509 of file UT_Vector.C.

template<typename T>
T* UT_VectorT< T >::getData ( void   )  const [inline]

Definition at line 204 of file UT_Vector.h.

template<typename T>
int UT_VectorT< T >::getNH (  )  const [inline]

Definition at line 84 of file UT_Vector.h.

template<typename T>
int UT_VectorT< T >::getNL (  )  const [inline]

Definition at line 81 of file UT_Vector.h.

template<typename T >
void UT_VectorT< T >::getPartialRange ( int &  start,
int &  end,
const UT_JobInfo info 
) const [inline]

Definition at line 144 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::getSubvector2 ( UT_Vector2 v,
int  idx 
) const [inline]

These methods allow one to read out and write into subvectors of UT_Vector using our other vector classes. Keep in mind that the usual UT_Vector? methods are 0 based, while this class is usually 1 based.

Definition at line 164 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::getSubvector3 ( UT_Vector3 v,
int  idx 
) const [inline]

Definition at line 180 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::getSubvector4 ( UT_Vector4 v,
int  idx 
) const [inline]

Definition at line 198 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::init ( int  nl,
int  nh 
) [inline]

Definition at line 114 of file UT_Vector.C.

template<typename T >
bool UT_VectorT< T >::isEqual ( const UT_VectorT< T > &  v,
int64  ulps 
) [inline]

Definition at line 553 of file UT_Vector.C.

template<typename T>
int UT_VectorT< T >::isInit (  )  const [inline]

Definition at line 62 of file UT_Vector.h.

template<typename T>
int UT_VectorT< T >::length ( void   )  const [inline]

Definition at line 87 of file UT_Vector.h.

template<typename T >
T UT_VectorT< T >::norm ( int  type = 2  )  const [inline]

Definition at line 229 of file UT_Vector.C.

template<typename T>
T UT_VectorT< T >::norm2 (  )  const

template<typename T>
T UT_VectorT< T >::operator() ( int  i  )  const [inline]

Definition at line 120 of file UT_Vector.h.

template<typename T>
T& UT_VectorT< T >::operator() ( int  i  )  [inline]

Definition at line 115 of file UT_Vector.h.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator*= ( fpreal32  scalar  )  [inline]

Definition at line 689 of file UT_Vector.C.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator*= ( const UT_VectorT< fpreal32 > &  v  )  [inline]

Definition at line 673 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator*= ( scalar  )  [inline]

Definition at line 484 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator*= ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 462 of file UT_Vector.C.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator+= ( const UT_VectorT< fpreal32 > &  v  )  [inline]

Definition at line 657 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator+= ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 440 of file UT_Vector.C.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator-= ( const UT_VectorT< fpreal32 > &  v  )  [inline]

Definition at line 665 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator-= ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 451 of file UT_Vector.C.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator/= ( fpreal32  scalar  )  [inline]

Definition at line 697 of file UT_Vector.C.

template<>
UT_VectorT< fpreal32 > & UT_VectorT< fpreal32 >::operator/= ( const UT_VectorT< fpreal32 > &  v  )  [inline]

Definition at line 681 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator/= ( scalar  )  [inline]

Definition at line 496 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator/= ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 473 of file UT_Vector.C.

template<typename T >
UT_VectorT< T > & UT_VectorT< T >::operator= ( const UT_VectorT< T > &  v  )  [inline]

Definition at line 430 of file UT_Vector.C.

template<typename T >
ostream & UT_VectorT< T >::save ( ostream &  os  )  const [inline]

Definition at line 541 of file UT_Vector.C.

template<typename T>
void UT_VectorT< T >::setShallowNH ( int  nh  )  [inline]

Definition at line 112 of file UT_Vector.h.

template<typename T>
void UT_VectorT< T >::setShallowNL ( int  nl  )  [inline]

Definition at line 111 of file UT_Vector.h.

template<typename T >
void UT_VectorT< T >::setSubvector2 ( int  idx,
const UT_Vector2 v 
) [inline]

Definition at line 172 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::setSubvector3 ( int  idx,
const UT_Vector3 v 
) [inline]

Definition at line 189 of file UT_Vector.C.

template<typename T >
void UT_VectorT< T >::setSubvector4 ( int  idx,
const UT_Vector4 v 
) [inline]

Definition at line 208 of file UT_Vector.C.

template<typename T>
bool UT_VectorT< T >::shouldMultiThread (  )  const [inline]

Definition at line 93 of file UT_Vector.h.

template<typename T >
void UT_VectorT< T >::subvector ( const UT_VectorT< T > &  v,
int  nl,
int  nh 
) [inline]

Definition at line 68 of file UT_Vector.C.

template<typename T>
UT_VectorT< T >::THREADED_METHOD ( UT_VectorT< T >  ,
shouldMultiThread()  ,
neg   
) const

template<typename T>
UT_VectorT< T >::THREADED_METHOD1 ( UT_VectorT< T >  ,
shouldMultiThread()  ,
negPlus  ,
const UT_VectorT< T > &  ,
v   
) const

template<typename T>
UT_VectorT< T >::THREADED_METHOD2 ( UT_VectorT< T >  ,
shouldMultiThread()  ,
multAndSet  ,
const UT_VectorT< T > &  ,
a  ,
const UT_VectorT< T > &  ,
b   
) const

template<typename T>
UT_VectorT< T >::THREADED_METHOD2 ( UT_VectorT< T >  ,
shouldMultiThread()  ,
scaleAddVec  ,
,
s  ,
const UT_VectorT< T > &  ,
v   
)

template<typename T>
UT_VectorT< T >::THREADED_METHOD2 ( UT_VectorT< T >  ,
shouldMultiThread()  ,
addScaledVec  ,
,
s  ,
const UT_VectorT< T > &  ,
v   
)

template<typename T>
UT_VectorT< T >::THREADED_METHOD2_CONST ( UT_VectorT< T >  ,
shouldMultiThread()  ,
dotInternal  ,
fpreal64 ,
result  ,
const UT_VectorT< T > &  ,
v   
) [protected]

template<typename T>
UT_VectorT< T >::THREADED_METHOD2_CONST ( UT_VectorT< T >  ,
shouldMultiThread()  ,
distance2Internal  ,
fpreal64 ,
result  ,
const UT_VectorT< T > &  ,
v   
) [protected]

template<typename T>
UT_VectorT< T >::THREADED_METHOD2_CONST ( UT_VectorT< T >  ,
shouldMultiThread()  ,
normInternal  ,
fpreal64 ,
result  ,
int  ,
type   
) [protected]

template<typename T>
UT_VectorT< T >::THREADED_METHOD3 ( UT_VectorT< T >  ,
shouldMultiThread()  ,
addScaledVecNorm2  ,
,
s  ,
const UT_VectorT< T > &  ,
v  ,
fpreal64 ,
norm2   
)

template<typename T>
void UT_VectorT< T >::zero (  )  [inline]

Definition at line 66 of file UT_Vector.h.

template<typename T >
void UT_VectorT< T >::zero ( int  nl,
int  nh 
) [inline]

Definition at line 156 of file UT_Vector.C.


Friends And Related Function Documentation

template<typename T>
ostream& operator<< ( ostream &  os,
const UT_VectorT< T > &  v 
) [friend]

Definition at line 201 of file UT_Vector.h.


Member Data Documentation

template<typename T>
const UT_VectorT<T>& UT_VectorT< T >::b

Definition at line 173 of file UT_Vector.h.

template<typename T>
const UT_VectorT<T> const UT_JobInfo& info UT_VectorT< T >::const [protected]

Definition at line 217 of file UT_Vector.h.

template<typename T>
const UT_VectorT< T > const UT_JobInfo &info UT_VectorT< T >::const [protected]

Definition at line 212 of file UT_Vector.h.

template<typename T>
const UT_VectorT<T> fpreal64 const UT_JobInfo& UT_VectorT< T >::info

Definition at line 156 of file UT_Vector.h.

template<typename T>
const UT_VectorT<T> const UT_JobInfo& UT_VectorT< T >::info

Definition at line 148 of file UT_Vector.h.

template<typename T>
const UT_VectorT< T > const UT_JobInfo & UT_VectorT< T >::info

Definition at line 142 of file UT_Vector.h.

template<typename T>
T UT_VectorT< T >::norm2 [inline]

Definition at line 156 of file UT_Vector.h.

template<typename T>
int UT_VectorT< T >::type [protected]

Definition at line 212 of file UT_Vector.h.

template<typename T>
const UT_VectorT< T > & UT_VectorT< T >::v

Definition at line 148 of file UT_Vector.h.


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

Generated on Fri May 25 00:10:55 2012 for HDK by  doxygen 1.5.9