10 #ifndef LINEAR_OPERATOR_H_
11 #define LINEAR_OPERATOR_H_
19 template<
class T>
class SGVector;
24 template<
class RetType,
class OperandType>
class CLinearOperator :
public CSGObject
69 virtual RetType
apply(OperandType b)
const = 0;
74 return "LinearOperator";
86 SG_ADD(&m_dimension,
"dimension",
87 "Dimension of the vector on which linear operator can apply",
94 #endif // LINEAR_OPERATOR_H_
CLinearOperator(index_t dimension)
const index_t get_dimension() const
virtual const char * get_name() const
Class SGObject is the base class of all shogun objects.
virtual RetType apply(OperandType b) const =0
all of classes and functions are contained in the shogun namespace
virtual ~CLinearOperator()