#include <CVector.h>
Public Member Functions | |
void | clear () |
void | copyFrom (const T *data) |
void | copyTo (T *data) const |
CVector (int len, T *data, bool ownsData) | |
CVector (const CVector &v) | |
CVector (int len) | |
CVector () | |
template<> | |
CVector< double > & | daxpy (const CVector &x, double alpha) |
CVector & | daxpy (const CVector &x, double alpha) |
double | dist (const CVector &v) const |
double | dist2 (const CVector &v, double k1, double k2) const |
double | dist2 (const CVector &v) const |
double | distInfty (const CVector &v) const |
T | dot (const CVector &v) const |
template<> | |
CVector< double > | dvdi () const |
CVector | dvdi () const |
double | L2 () const |
T | L2sqr () const |
int | Length () const |
T | Linfty () const |
template<> | |
CVector< double > | log () const |
CVector | log () const |
double | logdist2 (const CVector &v, double c) const |
double | logdist2 (const CVector &v) const |
double | maxAbsEl () |
CVector | mult (const CVector &v) const |
CVector | operator * (const T &v) const |
CVector & | operator *= (const T &val) |
bool | operator!= (const CVector &v) const |
T | operator() (const int index) const |
T & | operator() (const int index) |
CVector | operator+ (const T &v) const |
CVector | operator+ (const CVector &v) const |
CVector & | operator+= (const CVector &v) |
CVector | operator- (const T &v) const |
CVector | operator- (const CVector &v) const |
CVector & | operator-= (const CVector &v) |
CVector | operator/ (const T &v) const |
CVector & | operator/= (const T &val) |
CVector & | operator/= (const CVector &v) |
CVector & | operator= (const CVector &v) |
bool | operator== (const CVector &v) const |
T | operator[] (const int index) const |
T & | operator[] (const int index) |
void | printFloat (FILE *fp=stdout) |
T | prod () const |
template<> | |
CVector< double > | sigmoid () const |
CVector | sigmoid () const |
T | sum () const |
template<> | |
CVector< double > | tanh () const |
CVector | tanh () const |
virtual | ~CVector () |
Private Attributes | |
T * | _data |
int | _length |
bool | _ownsData |
CVector | ( | ) | [inline] |
CVector | ( | int | len | ) | [inline] |
CVector | ( | int | len, | |
T * | data, | |||
bool | ownsData | |||
) | [inline] |
virtual ~CVector | ( | ) | [inline, virtual] |
void clear | ( | ) | [inline] |
void copyFrom | ( | const T * | data | ) | [inline] |
void copyTo | ( | T * | data | ) | const [inline] |
double dist | ( | const CVector< T > & | v | ) | const [inline] |
double dist2 | ( | const CVector< T > & | v, | |
double | k1, | |||
double | k2 | |||
) | const [inline] |
double dist2 | ( | const CVector< T > & | v | ) | const [inline] |
double distInfty | ( | const CVector< T > & | v | ) | const [inline] |
T dot | ( | const CVector< T > & | v | ) | const [inline] |
CVector< double > dvdi | ( | ) | const [inline] |
CVector dvdi | ( | ) | const |
double L2 | ( | ) | const [inline] |
T L2sqr | ( | ) | const [inline] |
int Length | ( | ) | const [inline] |
T Linfty | ( | ) | const [inline] |
CVector< double > log | ( | ) | const [inline] |
CVector log | ( | ) | const |
double logdist2 | ( | const CVector< T > & | v, | |
double | c | |||
) | const [inline] |
double logdist2 | ( | const CVector< T > & | v | ) | const [inline] |
double maxAbsEl | ( | ) | [inline] |
CVector< T > operator * | ( | const T & | v | ) | const [inline] |
CVector< T > & operator *= | ( | const T & | val | ) | [inline] |
bool operator!= | ( | const CVector< T > & | v | ) | const [inline] |
T operator() | ( | const int | index | ) | const [inline] |
T & operator() | ( | const int | index | ) | [inline] |
CVector< T > operator+ | ( | const T & | v | ) | const [inline] |
CVector< T > operator- | ( | const T & | v | ) | const [inline] |
CVector< T > operator/ | ( | const T & | v | ) | const [inline] |
CVector< T > & operator/= | ( | const T & | val | ) | [inline] |
bool operator== | ( | const CVector< T > & | v | ) | const [inline] |
T operator[] | ( | const int | index | ) | const [inline] |
T & operator[] | ( | const int | index | ) | [inline] |
void printFloat | ( | FILE * | fp = stdout |
) | [inline] |
T prod | ( | ) | const [inline] |
CVector< double > sigmoid | ( | ) | const [inline] |
CVector sigmoid | ( | ) | const |
T sum | ( | ) | const [inline] |
CVector< double > tanh | ( | ) | const [inline] |
CVector tanh | ( | ) | const |
T* _data [private] |
int _length [private] |
bool _ownsData [private] |