ECF
1.7
D:
Projekt
ECF
ECF_master
ECF
cartesian
Sin.h
1
#ifndef CGPSin_h
2
#define CGPSin_h
3
#include "Function.h"
4
5
namespace
Cartesian
6
{
7
template
<
class
T>
8
class
SinT:
public
Function
9
{
10
public
:
11
SinT();
12
~SinT();
13
14
void
evaluate(std::vector<T>& inputs, T& result);
15
};
16
17
typedef
SinT<double>
Sin;
18
template
<
class
T>
19
SinT<T>::SinT()
20
{
21
name_ =
"sin"
;
22
nArguments_ = 1;
23
}
24
25
template
<
class
T>
26
SinT<T>::~SinT()
27
{}
28
29
template
<
class
T>
30
void
SinT<T>::evaluate(std::vector<T> &inputs, T &result)
31
{
32
result = sin(inputs[0]);
33
}
34
}
35
#endif
//Sin_h
Cartesian::SinT
Definition
Sin.h:9
Generated on
for ECF by
1.18.0