ScummVM API documentation
dgGeneralVector< T > Class Template Reference

Public Member Functions

 dgGeneralVector (dgInt32 size)
 
 dgGeneralVector (dgInt32 size, T *mem)
 
 dgGeneralVector (const dgGeneralVector< T > &src)
 
 dgGeneralVector (const dgGeneralVector< T > &src, T *mem)
 
T & operator[] (dgInt32 i)
 
const T & operator[] (dgInt32 i) const
 
dgInt32 GetRowCount () const
 
void Clear (T val)
 
void Copy (const dgGeneralVector< T > &src)
 
DotProduct (const dgGeneralVector &b) const
 
Norm () const
 
Norm2 () const
 
void operator+= (const dgGeneralVector &A)
 
void operator-= (const dgGeneralVector &A)
 
void Scale (T scale)
 
void LinearCombine (T scale, const dgGeneralVector &A, const dgGeneralVector &B)
 
void Trace () const
 

Static Public Member Functions

static dgInt32 GetFloatOps ()
 
static dgInt32 GetMemWrites ()
 
static void SetFloatOps (dgInt32 initialCount=0)
 
static void SetMemWrites (dgInt32 initialCount=0)
 

Protected Attributes

bool m_ownMemory
 
dgInt32 m_colCount
 
T * m_columns
 

Static Protected Attributes

static dgInt32 m_floatsOp = 0
 
static dgInt32 m_memoryWrite = 0
 

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