SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
SGVector.cpp File Reference

Go to the source code of this file.

Classes

struct  IndexSorter< T >

Macros

#define COMPLEX128_ERROR_NOARG(function)
#define BOOL_ERROR_ONEARG(function)
#define COMPLEX128_ERROR_ONEARG(function)
#define COMPLEX128_ERROR_TWOARGS(function)
#define COMPLEX128_ERROR_THREEARGS(function)
#define MATHOP(op)
#define COMPLEX128_MATHOP(op)
#define COMPLEX128_MATHOP_NOTIMPLEMENTED(op)
#define UNDEFINED(function, type)

Macro Definition Documentation

#define BOOL_ERROR_ONEARG (   function)
Value:
template <> \
void SGVector<bool>::function(bool a) \
{ \
SG_SERROR("SGVector::%s():: Not supported for bool\n",\
#function);\
}

Definition at line 37 of file SGVector.cpp.

#define COMPLEX128_ERROR_NOARG (   function)
Value:
template <> \
void SGVector<complex128_t>::function() \
{ \
SG_SERROR("SGVector::%s():: Not supported for complex128_t\n",\
#function);\
}

Definition at line 29 of file SGVector.cpp.

#define COMPLEX128_ERROR_ONEARG (   function)
Value:
template <> \
void SGVector<complex128_t>::function(complex128_t a) \
{ \
SG_SERROR("SGVector::%s():: Not supported for complex128_t\n",\
#function);\
}

Definition at line 45 of file SGVector.cpp.

#define COMPLEX128_ERROR_THREEARGS (   function)
Value:
template <> \
void SGVector<complex128_t>::function(complex128_t a, complex128_t b,\
{ \
SG_SERROR("SGVector::%s():: Not supported for complex128_t\n",\
#function);\
}

Definition at line 61 of file SGVector.cpp.

#define COMPLEX128_ERROR_TWOARGS (   function)
Value:
template <> \
void SGVector<complex128_t>::function(complex128_t a, complex128_t b) \
{ \
SG_SERROR("SGVector::%s():: Not supported for complex128_t\n",\
#function);\
}

Definition at line 53 of file SGVector.cpp.

#define COMPLEX128_MATHOP (   op)
Value:
template <>\
void SGVector<complex128_t>::op() \
{ \
for (int32_t i=0; i<vlen; i++) \
vector[i]=complex128_t(CMath::op(vector[i])); \
}

Definition at line 1282 of file SGVector.cpp.

#define COMPLEX128_MATHOP_NOTIMPLEMENTED (   op)
Value:
template <>\
void SGVector<complex128_t>::op() \
{ \
SG_SERROR("SGVector::%s():: Not supported for complex128_t\n",#op);\
}

Definition at line 1303 of file SGVector.cpp.

#define MATHOP (   op)
Value:
template <class T> void SGVector<T>::op() \
{ \
for (int32_t i=0; i<vlen; i++) \
vector[i]=(T) CMath::op((double) vector[i]); \
}

Definition at line 1259 of file SGVector.cpp.

#define UNDEFINED (   function,
  type 
)
Value:
template <> \
SGVector<float64_t> SGVector<type>::function() \
{ \
SG_SERROR("SGVector::%s():: Not supported for %s\n", \
#function, #type); \
SGVector<float64_t> ret(vlen); \
return ret; \
}

Definition at line 1415 of file SGVector.cpp.


SHOGUN Machine Learning Toolbox - Documentation