|
| CSparseVector (int dim, int size, Type elements[], int pos[]) |
|
| CSparseVector (int dim, int size, vector< Type > elements, vector< int > pos) |
|
| CSparseVector (int dim, int size) |
|
| CSparseVector (const CSparseVector< Type > &o) |
|
| CSparseVector (const CVector< Type > &o) |
|
CVector< Type > * | clone () const |
| destructor More...
|
|
virtual | ~CSparseVector () |
|
const Type & | operator[] (int index) const |
| return constant reference to n'th vector element More...
|
|
int | dimension () const |
| return vector dimension More...
|
|
Type | getElement (int iIndex) const |
| return copy of n'th vector element More...
|
|
void | setElement (int index, pair< int, Type > value) |
|
int | getNumNonZero () const |
| returns the number of non-zero entries More...
|
|
bool | isNaN () const |
| returns true if vector contains nan elements More...
|
|
Type | euclideanLength (bool bQuad=false) const |
| returns euclidean length of vector More...
|
|
virtual string | className () const |
| Returns the class name. More...
|
|
CVector< double > * | toDouble () const |
| create a copy with every element stored as 'double' More...
|
|
CVector< float > * | toFloat () const |
| create a copy with every element stored as 'float' More...
|
|
CDenseVector< int > | sort () |
|
CVector< Type > & | operator*= (const CVector< Type > &v2) |
|
CVector< Type > & | operator/= (const CVector< Type > &v2) |
|
virtual CVector< Type > & | operator*= (const Type &) |
| multiply every element with scalar More...
|
|
virtual CVector< Type > & | operator/= (const Type &) |
| divide every element by scalar More...
|
|
keyed_iterator< Type > | begin () const |
|
keyed_iterator< Type > | begin () |
|
keyed_iterator< Type > | end () const |
|
keyed_iterator< Type > | end () |
|
virtual | ~CVector () |
|
virtual vector< Type > | toSTL () const |
|
virtual bool | operator== (const CVector< Type > &rhs) const |
| returns true if rhs has the same elements More...
|
|
Type | operator* (const CVector< Type > &) const |
| scalar product with vector More...
|
|
CVector< Type > & | operator*= (const CVector< Type > &) |
| multiply vectors elementwise More...
|
|
CVector< Type > & | operator/= (const CVector< Type > &) |
| divide vectors elementwise More...
|
|
Type | euclideanDistance (const CVector< Type > &, bool b=false) const |
|
Type | coCosineDistance (const CVector< Type > &) const |
| returns common cosine distance of the two vectors More...
|
|
void | adaptToVec (const CVector< Type > &, float fEps1, float fEps2) |
|
virtual bool | serialize (fstream &stream, IO_MODE mode) |
| Read/write from binary stream. More...
|
|
| CObject () |
| Constructor. More...
|
|
virtual | ~CObject () |
| Destructor. More...
|
|
virtual bool | serialize2 (CArchiv &tArchiv) |
|
void | setVerbose (VERBOSE_LEVEL tVerbose) |
| Set the verbose level. More...
|
|
VERBOSE_LEVEL | verbose (void) const |
| Return current verbose level. More...
|
|
virtual bool | isA (const char *acClass) const |
| Check if the object is an instance of the class with given name. More...
|
|
DATATYPE | dataType () const |
| Returns the template data type. More...
|
|
template<class Type>
class CSparseVector< Type >
Sparse, immutable vector representation.