HMLP: High-performance Machine Learning Primitives
pvfmm::Vector< ValueType > Class Template Reference

Public Types

typedef ValueType ValType
 

Public Member Functions

 Vector (Long dim_, Iterator< ValueType > data_=Iterator< ValueType >(NULL), bool own_data_=true)
 
 Vector (const Vector &V)
 
 Vector (const std::vector< ValueType > &V)
 
void Swap (Vector< ValueType > &v1)
 
void ReInit (Long dim_, Iterator< ValueType > data_=NULL, bool own_data_=true)
 
void Write (const char *fname) const
 
void Read (const char *fname)
 
Long Dim () const
 
Long Capacity () const
 
void SetZero ()
 
Iterator< ValueType > Begin ()
 
ConstIterator< ValueType > Begin () const
 
void PushBack (const ValueType &x)
 
Vectoroperator= (const Vector &V)
 
Vectoroperator= (const std::vector< ValueType > &V)
 
ValueType & operator[] (Long j)
 
const ValueType & operator[] (Long j) const
 

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