Add enum to AuroraDef

This commit is contained in:
kradchen
2023-12-12 15:11:12 +08:00
parent 2b49342a4d
commit 4c8e443605
4 changed files with 9 additions and 4 deletions

View File

@@ -16,5 +16,9 @@ namespace Aurora
Row, Row,
All All
}; };
enum ValueType{
Normal=1,
Complex
};
} }
#endif //AURORA_AURORADEFS_H #endif //AURORA_AURORADEFS_H

View File

@@ -4,6 +4,7 @@
#include <thrust/complex.h> #include <thrust/complex.h>
#include <thrust/functional.h> #include <thrust/functional.h>
#include <thrust/execution_policy.h> #include <thrust/execution_policy.h>
#include "AuroraDefs.h"
using namespace thrust::placeholders; using namespace thrust::placeholders;
struct PowOp: public thrust::unary_function<float, float>{ struct PowOp: public thrust::unary_function<float, float>{

View File

@@ -4,13 +4,11 @@
#include <memory> #include <memory>
#include <complex> #include <complex>
#include <vector> #include <vector>
#include "AuroraDefs.h"
namespace Aurora { namespace Aurora {
enum ValueType{
Normal=1,
Complex
};
const int $ = -1; const int $ = -1;
class CudaMatrix; class CudaMatrix;

View File

@@ -1,4 +1,6 @@
#include <complex>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "AuroraDefs.h"
#include "Matrix.h" #include "Matrix.h"
#include "CudaMatrix.h" #include "CudaMatrix.h"
#include "Function.h" #include "Function.h"