forked from HiPerCoRe/cuFFTAdvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeneralTransform.h
More file actions
38 lines (29 loc) · 1.13 KB
/
generalTransform.h
File metadata and controls
38 lines (29 loc) · 1.13 KB
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
35
36
37
38
#ifndef CUFFTADVISOR_GENERALTRANSFORM_H_
#define CUFFTADVISOR_GENERALTRANSFORM_H_
#include "utils.h"
namespace cuFFTAdvisor {
class GeneralTransform {
public:
GeneralTransform(int device, int X, int Y, int Z, int N,
Tristate::Tristate isBatched, Tristate::Tristate isFloat,
Tristate::Tristate isForward, Tristate::Tristate isInPlace,
Tristate::Tristate isReal);
GeneralTransform(int X, int Y, int Z, const GeneralTransform &tr);
GeneralTransform(const GeneralTransform &tr);
GeneralTransform &operator=(const GeneralTransform &tr);
size_t getDimSize() { return (size_t)X * Y * Z; }
int device;
// requested size of the transform
int X;
int Y;
int Z;
int N; // no of images to process (not necessary in batch)
// additional transform properties
Tristate::Tristate isBatched;
Tristate::Tristate isFloat; // otherwise double
Tristate::Tristate isForward; // otherwise inverse
Tristate::Tristate isInPlace; // otherwise out-of-place
Tristate::Tristate isReal; // otherwise C2C
};
} // namespace cuFFTAdvisor
#endif // CUFFTADVISOR_GENERALTRANSFORM_H_