Public Member Functions | Public Attributes

SGSparseVector< T > Class Template Reference

Detailed Description

template<class T>
class shogun::SGSparseVector< T >

template class SGSparseVector

Definition at line 520 of file DataType.h.

List of all members.

Public Member Functions

 SGSparseVector ()
 SGSparseVector (SGSparseVectorEntry< T > *feats, index_t num_entries, index_t index, bool free_v=false)
 SGSparseVector (index_t num_entries, index_t index, bool free_v=false)
 SGSparseVector (const SGSparseVector &orig)
void free_vector ()
void destroy_vector ()

Public Attributes

index_t vec_index
index_t num_feat_entries
SGSparseVectorEntry< T > * features
bool do_free

Constructor & Destructor Documentation

SGSparseVector (  ) 

default constructor

Definition at line 524 of file DataType.h.

SGSparseVector ( SGSparseVectorEntry< T > *  feats,
index_t  num_entries,
index_t  index,
bool  free_v = false 

constructor for setting params

Definition at line 528 of file DataType.h.

SGSparseVector ( index_t  num_entries,
index_t  index,
bool  free_v = false 

constructor to create new vector in memory

Definition at line 534 of file DataType.h.

SGSparseVector ( const SGSparseVector< T > &  orig  ) 

copy constructor

Definition at line 541 of file DataType.h.

Member Function Documentation

void destroy_vector (  ) 

destroy vector

Definition at line 558 of file DataType.h.

void free_vector (  ) 

free vector

Definition at line 546 of file DataType.h.

Member Data Documentation

bool do_free

whether vector needs to be freed

Definition at line 575 of file DataType.h.


Definition at line 572 of file DataType.h.

number of feature entries

Definition at line 569 of file DataType.h.

vector index

Definition at line 566 of file DataType.h.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation