integer vector types
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
__host__ __device__ cuvec2();
|
||||
__host__ __device__ ~cuvec2();
|
||||
__host__ __device__ cuvec2(const double &_x, const double &_y);
|
||||
__host__ __device__ float& operator[](const int &I);
|
||||
__host__ __device__ const float& operator[](const int &I) const;
|
||||
__host__ __device__ double& operator[](const int &I);
|
||||
__host__ __device__ const double& operator[](const int &I) const;
|
||||
__host__ __device__ cuvec2 operator+(const cuvec2& rhs) const;
|
||||
__host__ __device__ cuvec2 operator-(const cuvec2& rhs) const;
|
||||
__host__ __device__ cuvec2 operator*(const cuvec2& rhs) const; //elementwise product
|
||||
@ -29,14 +29,14 @@ double m01,m11;
|
||||
const double& _m10, const double& _m11
|
||||
);
|
||||
__host__ __device__ cumat2(const double* data4);
|
||||
__host__ __device__ float& operator[](const int &I);
|
||||
__host__ __device__ const float& operator[](const int &I) const;
|
||||
__host__ __device__ float& operator()(const int &I, const int &J);
|
||||
__host__ __device__ const float& operator()(const int &I, const int &J) const;
|
||||
__host__ __device__ float& at(const int &I, const int &J);
|
||||
__host__ __device__ const float& at(const int &I, const int &J) const;
|
||||
__host__ __device__ double* data(); //pointer to float4 representation of matrix
|
||||
__host__ __device__ const double* data() const; //pointer to float4 representation of matrix
|
||||
__host__ __device__ double& operator[](const int &I);
|
||||
__host__ __device__ const double& operator[](const int &I) const;
|
||||
__host__ __device__ double& operator()(const int &I, const int &J);
|
||||
__host__ __device__ const double& operator()(const int &I, const int &J) const;
|
||||
__host__ __device__ double& at(const int &I, const int &J);
|
||||
__host__ __device__ const double& at(const int &I, const int &J) const;
|
||||
__host__ __device__ double* data(); //pointer to double4 representation of matrix
|
||||
__host__ __device__ const double* data() const; //pointer to double4 representation of matrix
|
||||
__host__ __device__ cumat2 operator+(const cumat2& rhs) const;
|
||||
__host__ __device__ cumat2 operator-(const cumat2& rhs) const;
|
||||
__host__ __device__ cumat2 operator*(const cumat2& rhs) const;
|
||||
|
||||
Reference in New Issue
Block a user