Public Member Functions | Static Public Member Functions | Public Attributes

SGVector< T > Class Template Reference

Detailed Description

template<class T>
class shogun::SGVector< T >

shogun vector

Definition at line 28 of file DataType.h.

List of all members.

Public Member Functions

 SGVector ()
 SGVector (T *v, index_t len, bool free_vec=false)
 SGVector (index_t len, bool free_vec=false)
 SGVector (const SGVector &orig)
virtual void free_vector ()
virtual void destroy_vector ()

Static Public Member Functions

static SGVector get_vector (SGVector &src, bool own=true)

Public Attributes

T * vector
index_t vlen
bool do_free

Constructor & Destructor Documentation

SGVector (  ) 

default constructor

Definition at line 32 of file DataType.h.

SGVector ( T *  v,
index_t  len,
bool  free_vec = false 

constructor for setting params

Definition at line 35 of file DataType.h.

SGVector ( index_t  len,
bool  free_vec = false 

constructor to create new vector in memory

Definition at line 39 of file DataType.h.

SGVector ( const SGVector< T > &  orig  ) 

copy constructor

Definition at line 46 of file DataType.h.

Member Function Documentation

virtual void destroy_vector (  )  [virtual]

destroy vector

Definition at line 74 of file DataType.h.

virtual void free_vector (  )  [virtual]

free vector

Definition at line 63 of file DataType.h.

static SGVector get_vector ( SGVector< T > &  src,
bool  own = true 
) [static]

get vector

src vector to get
own true if should be owned

Definition at line 53 of file DataType.h.

Member Data Documentation

bool do_free

whether vector needs to be freed

Definition at line 86 of file DataType.h.

T* vector


Definition at line 82 of file DataType.h.

length of vector

Definition at line 84 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