SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LinearOperator.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Soumyajit De
8  * Written (W) 2013 Heiko Strathmann
9  */
10 
12 #include <shogun/base/Parameter.h>
13 
14 namespace shogun
15 {
16 
17 template<class T>
19 {
20  init();
21 }
22 
23 template<class T>
25 {
26  init();
27 
28  m_dimension=dimension;
29 }
30 
31 template<class T>
33 {
34 }
35 
36 template<class T>
38 {
39  return m_dimension;
40 }
41 
42 template<class T>
44 {
45  m_dimension=0;
46 
47  SG_ADD(&m_dimension, "dimension",
48  "Dimension of the vector on which linear operator can apply",
50 }
51 
52 template class CLinearOperator<bool>;
53 template class CLinearOperator<char>;
54 template class CLinearOperator<int8_t>;
55 template class CLinearOperator<uint8_t>;
56 template class CLinearOperator<int16_t>;
57 template class CLinearOperator<uint16_t>;
58 template class CLinearOperator<int32_t>;
59 template class CLinearOperator<uint32_t>;
60 template class CLinearOperator<int64_t>;
61 template class CLinearOperator<uint64_t>;
62 template class CLinearOperator<float32_t>;
63 template class CLinearOperator<float64_t>;
64 template class CLinearOperator<floatmax_t>;
65 template class CLinearOperator<complex128_t>;
66 
67 }
const index_t get_dimension() const
int32_t index_t
Definition: common.h:62
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:115
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Abstract template base class that represents a linear operator, e.g. a matrix.
#define SG_ADD(...)
Definition: SGObject.h:84

SHOGUN Machine Learning Toolbox - Documentation