SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Defines
SGVector.cpp File Reference

Go to the source code of this file.

Classes

struct  IndexSorter< T >

Defines

#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)

Define 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,\
    complex128_t c) \
{ \
    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 1281 of file SGVector.cpp.

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

Definition at line 1302 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 1258 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 1414 of file SGVector.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation