SHOGUN
6.0.0
src
shogun
mathematics
linalg
linop
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
11
#include <
shogun/mathematics/linalg/linop/LinearOperator.h
>
12
#include <
shogun/base/Parameter.h
>
13
14
namespace
shogun
15
{
16
17
template
<
class
T>
18
CLinearOperator<T>::CLinearOperator
() :
CSGObject
()
19
{
20
init();
21
}
22
23
template
<
class
T>
24
CLinearOperator<T>::CLinearOperator
(
index_t
dimension) :
CSGObject
()
25
{
26
init();
27
28
m_dimension=dimension;
29
}
30
31
template
<
class
T>
32
CLinearOperator<T>::~CLinearOperator
()
33
{
34
}
35
36
template
<
class
T>
37
const
index_t
CLinearOperator<T>::get_dimension
()
const
38
{
39
return
m_dimension;
40
}
41
42
template
<
class
T>
43
void
CLinearOperator<T>::init
()
44
{
45
m_dimension=0;
46
47
SG_ADD
(&m_dimension,
"dimension"
,
48
"Dimension of the vector on which linear operator can apply"
,
49
MS_NOT_AVAILABLE
);
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
}
index_t
int32_t index_t
Definition:
common.h:72
Parameter.h
shogun::MS_NOT_AVAILABLE
Definition:
SGObject.h:102
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:125
shogun::CLinearOperator
Abstract template base class that represents a linear operator, e.g. a matrix.
Definition:
LanczosEigenSolver.h:20
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
LinearOperator.h
SG_ADD
#define SG_ADD(...)
Definition:
SGObject.h:94
shogun::CLinearOperator::CLinearOperator
CLinearOperator()
Definition:
LinearOperator.cpp:18
SHOGUN
Machine Learning Toolbox - Documentation