-
Notifications
You must be signed in to change notification settings - Fork 0
/
convolution.h
34 lines (25 loc) · 890 Bytes
/
convolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef CONVOLUTION_H_
#define CONVOLUTION_H_
#include "tensor.h"
#include "vector.h"
template<class R>
class NaiveConvolution {
public:
static void Square(Tensor<R>& target, const Tensor<R>& source, const Vector<R>& target_anchor, const Vector<R>& target_source);
};
template<class R>
class ParallelNaiveConvolution {
public:
static void Square(Tensor<R>& target, const Tensor<R>& source, const Vector<R>& target_anchor, const Vector<R>& target_source);
};
template<class R>
class FFTConvolution {
public:
static void Square(Tensor<R>& target, const Tensor<R>& source, const Vector<R>& target_anchor, const Vector<R>& source_anchor);
};
template<class R, class C, class D>
class DoubleCheckConvolution {
public:
static void Square(Tensor<R>& target, const Tensor<R>& source, const Vector<R>& target_anchor, const Vector<R>& source_anchor);
};
#endif // CONVOLUTION_H_