integer vector types
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
__host__ __device__ cuvec3i();
|
||||
__host__ __device__ ~cuvec3i();
|
||||
__host__ __device__ cuvec3i(const int &_x, const int &_y, const int &_z);
|
||||
__host__ __device__ float& operator[](const int &I);
|
||||
__host__ __device__ const float& operator[](const int &I) const;
|
||||
__host__ __device__ int& operator[](const int &I);
|
||||
__host__ __device__ const int& operator[](const int &I) const;
|
||||
__host__ __device__ cuvec3i operator+(const cuvec3i& rhs) const;
|
||||
__host__ __device__ cuvec3i operator-(const cuvec3i& rhs) const;
|
||||
__host__ __device__ cuvec3i operator*(const cuvec3i& rhs) const; //elementwise product
|
||||
@ -31,14 +31,14 @@ int m02,m12,m22;
|
||||
const int& _m20, const int& _m21, const int& _m22
|
||||
);
|
||||
__host__ __device__ cumat3i(const int* data9);
|
||||
__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__ int* data(); //pointer to float9 representation of matrix
|
||||
__host__ __device__ const int* data() const; //pointer to float9 representation of matrix
|
||||
__host__ __device__ int& operator[](const int &I);
|
||||
__host__ __device__ const int& operator[](const int &I) const;
|
||||
__host__ __device__ int& operator()(const int &I, const int &J);
|
||||
__host__ __device__ const int& operator()(const int &I, const int &J) const;
|
||||
__host__ __device__ int& at(const int &I, const int &J);
|
||||
__host__ __device__ const int& at(const int &I, const int &J) const;
|
||||
__host__ __device__ int* data(); //pointer to int9 representation of matrix
|
||||
__host__ __device__ const int* data() const; //pointer to int9 representation of matrix
|
||||
__host__ __device__ cumat3i operator+(const cumat3i& rhs) const;
|
||||
__host__ __device__ cumat3i operator-(const cumat3i& rhs) const;
|
||||
__host__ __device__ cumat3i operator*(const cumat3i& rhs) const;
|
||||
|
||||
Reference in New Issue
Block a user