klMatrix
Public Member Functions | Data Fields | Private Attributes
klVector< TYPE > Class Template Reference

#include <kl_vector.h>

Inheritance diagram for klVector< TYPE >:
Inheritance graph
Collaboration diagram for klVector< TYPE >:
Collaboration graph

Public Member Functions

 klVector (klMemMgr *mgr, __int64 size, bool own=false)
 
 klVector (TYPE *mem, __int64 size, bool own=false)
 
 klVector (__int64 size)
 
 klVector (double xStart, double dx, double xEnd)
 
 klVector ()
 
 klVector (const klVector< TYPE > &src)
 
 klVector (klVector< TYPE > &&src)
 
klVector< TYPE > pow_gen (klVector< TYPE > b)
 
klVector< TYPE > pow_alpha (double alpha)
 
klVector< TYPE > histogram (__int64 histogramBins, double a, double b)
 
klVector< TYPE > sort (bool ascending=true)
 
void setOwn (bool set)
 
void setup (__int64 size, klMemMgr *mgr=0, TYPE *mem=0)
 
__int64 getRowSize () const
 
__int64 getColumns () const
 
__int64 getRows () const
 
TYPE * getMemory () const
 
klMemMgrgetMemMgr () const
 
 ~klVector ()
 
TYPE dot (klVector< TYPE > &rhs) const
 
TYPE dotBLAS (klVector< TYPE > &rhs) const
 
TYPE & operator[] (__int64 subscript) const
 
klVector< TYPE > & operator= (const klVector< TYPE > &src)
 
klVector< TYPE > diff (__int64 delta)
 
klVector< TYPE > absv ()
 
TYPE sum ()
 
size_t precision () const
 
void setupDomain (double a, double b)
 
void setupRange ()
 
void operator= (const TYPE c)
 
klVector< bool > operator== (const TYPE c) const
 
klVector< bool > operator!= (const TYPE c) const
 
klVector< bool > operator< (const TYPE c) const
 
klVector< bool > operator<= (const TYPE c) const
 
klVector< bool > operator> (const TYPE c) const
 
klVector< bool > operator>= (const TYPE c) const
 
bool operator== (const klVector< TYPE > &v) const
 
bool isPositive ()
 
template<>
float dotBLAS (klVector< float > &rhs) const
 
template<>
klVector< float > pow_gen (klVector< float > b)
 
template<>
klVector< float > pow_alpha (double alpha)
 
- Public Member Functions inherited from klRefCount< klMutex >
 klRefCount (void)
 
 klRefCount (const klRefCount &obj)
 
 ~klRefCount (void)
 
void addRef (void)
 
bool deleteRef (void)
 
klRefCountoperator= (const klRefCount &obj)
 
long useCount () const
 

Data Fields

double x0
 
double x1
 
double y0
 
double y1
 
string desc
 

Private Attributes

TYPE * _mMemory
 
__int64 _size
 
__int64 _own
 
klMemMgr_mgr
 

Additional Inherited Members

- Static Private Member Functions inherited from klGlobalMemoryManager
static void setklVectorGlobalMemoryManager (klMemMgr *mgr)
 
- Static Private Attributes inherited from klGlobalMemoryManager
static klMemMgr_globalMemoryManager =NULL
 

Constructor & Destructor Documentation

template<class TYPE>
klVector< TYPE >::klVector ( klMemMgr mgr,
__int64  size,
bool  own = false 
)
inline
template<class TYPE>
klVector< TYPE >::klVector ( TYPE *  mem,
__int64  size,
bool  own = false 
)
inline
template<class TYPE>
klVector< TYPE >::klVector ( __int64  size)
inline
template<class TYPE>
klVector< TYPE >::klVector ( double  xStart,
double  dx,
double  xEnd 
)
inline
template<class TYPE>
klVector< TYPE >::klVector ( )
inline
template<class TYPE>
klVector< TYPE >::klVector ( const klVector< TYPE > &  src)
inline
template<class TYPE>
klVector< TYPE >::klVector ( klVector< TYPE > &&  src)
inline
template<class TYPE>
klVector< TYPE >::~klVector ( )
inline

Member Function Documentation

template<class TYPE>
klVector<TYPE> klVector< TYPE >::absv ( )
inline
template<class TYPE>
klVector<TYPE> klVector< TYPE >::diff ( __int64  delta)
inline

Here is the caller graph for this function:

template<class TYPE>
TYPE klVector< TYPE >::dot ( klVector< TYPE > &  rhs) const
inline

Here is the caller graph for this function:

template<class TYPE>
TYPE klVector< TYPE >::dotBLAS ( klVector< TYPE > &  rhs) const
inline

Here is the caller graph for this function:

template<>
float klVector< float >::dotBLAS ( klVector< float > &  rhs) const

Here is the call graph for this function:

template<class TYPE>
__int64 klVector< TYPE >::getColumns ( ) const
inline
template<class TYPE>
klMemMgr* klVector< TYPE >::getMemMgr ( ) const
inline
template<class TYPE>
TYPE* klVector< TYPE >::getMemory ( ) const
inline
template<class TYPE>
__int64 klVector< TYPE >::getRows ( ) const
inline

Here is the caller graph for this function:

template<class TYPE>
__int64 klVector< TYPE >::getRowSize ( ) const
inline

Here is the caller graph for this function:

template<class TYPE>
klVector<TYPE> klVector< TYPE >::histogram ( __int64  histogramBins,
double  a,
double  b 
)
inline

Here is the caller graph for this function:

template<class TYPE>
bool klVector< TYPE >::isPositive ( )
inline

Here is the caller graph for this function:

template<class TYPE>
klVector<bool> klVector< TYPE >::operator!= ( const TYPE  c) const
inline
template<class TYPE>
klVector<bool> klVector< TYPE >::operator< ( const TYPE  c) const
inline
template<class TYPE>
klVector<bool> klVector< TYPE >::operator<= ( const TYPE  c) const
inline
template<class TYPE>
klVector<TYPE>& klVector< TYPE >::operator= ( const klVector< TYPE > &  src)
inline
template<class TYPE>
void klVector< TYPE >::operator= ( const TYPE  c)
inline
template<class TYPE>
klVector<bool> klVector< TYPE >::operator== ( const TYPE  c) const
inline
template<class TYPE>
bool klVector< TYPE >::operator== ( const klVector< TYPE > &  v) const
inline
template<class TYPE>
klVector<bool> klVector< TYPE >::operator> ( const TYPE  c) const
inline
template<class TYPE>
klVector<bool> klVector< TYPE >::operator>= ( const TYPE  c) const
inline
template<class TYPE>
TYPE& klVector< TYPE >::operator[] ( __int64  subscript) const
inline
template<class TYPE>
klVector<TYPE> klVector< TYPE >::pow_alpha ( double  alpha)
inline
template<>
klVector< float > klVector< float >::pow_alpha ( double  alpha)
template<class TYPE>
klVector<TYPE> klVector< TYPE >::pow_gen ( klVector< TYPE >  b)
inline
template<>
klVector< float > klVector< float >::pow_gen ( klVector< float >  b)

Here is the call graph for this function:

template<class TYPE>
size_t klVector< TYPE >::precision ( ) const
inline
template<class TYPE>
void klVector< TYPE >::setOwn ( bool  set)
inline
template<class TYPE>
void klVector< TYPE >::setup ( __int64  size,
klMemMgr mgr = 0,
TYPE *  mem = 0 
)
inline

Here is the caller graph for this function:

template<class TYPE>
void klVector< TYPE >::setupDomain ( double  a,
double  b 
)
inline
template<class TYPE>
void klVector< TYPE >::setupRange ( )
inline

Here is the caller graph for this function:

template<class TYPE>
klVector<TYPE> klVector< TYPE >::sort ( bool  ascending = true)
inline
template<class TYPE>
TYPE klVector< TYPE >::sum ( )
inline

Here is the caller graph for this function:

Field Documentation

template<class TYPE>
klMemMgr* klVector< TYPE >::_mgr
private
template<class TYPE>
TYPE* klVector< TYPE >::_mMemory
private
template<class TYPE>
__int64 klVector< TYPE >::_own
mutableprivate
template<class TYPE>
__int64 klVector< TYPE >::_size
private
template<class TYPE>
string klVector< TYPE >::desc
template<class TYPE>
double klVector< TYPE >::x0
template<class TYPE>
double klVector< TYPE >::x1
template<class TYPE>
double klVector< TYPE >::y0
template<class TYPE>
double klVector< TYPE >::y1

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