Public Member Functions | Public Attributes

SGSparseVector< T > Struct Template Reference

Detailed Description

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

template class SGSparseVector

Definition at line 335 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 339 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 343 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 349 of file DataType.h.

SGSparseVector ( const SGSparseVector< T > &  orig  ) 

copy constructor

Definition at line 356 of file DataType.h.

Member Function Documentation

void destroy_vector (  ) 

destroy vector

Definition at line 373 of file DataType.h.

void free_vector (  ) 

free vector

Definition at line 361 of file DataType.h.

Member Data Documentation

bool do_free

whether vector needs to be freed

Definition at line 390 of file DataType.h.


Definition at line 387 of file DataType.h.

number of feature entries

Definition at line 384 of file DataType.h.

vector index

Definition at line 381 of file DataType.h.

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

SHOGUN Machine Learning Toolbox - Documentation