integer vector types
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
__host__ __device__ cuvec4i();
|
||||
__host__ __device__ ~cuvec4i();
|
||||
__host__ __device__ cuvec4i(const int &_x, const int &_y, const int &_z, const int &_w);
|
||||
__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__ cuvec4i operator+(const cuvec4i& rhs) const;
|
||||
__host__ __device__ cuvec4i operator-(const cuvec4i& rhs) const;
|
||||
__host__ __device__ cuvec4i operator*(const cuvec4i& rhs) const; //elementwise product
|
||||
@ -33,14 +33,14 @@ int m03,m13,m23,m33;
|
||||
const int& _m30, const int& _m31, const int& _m32, const int& _m33
|
||||
);
|
||||
__host__ __device__ cumat4i(const int* data16);
|
||||
__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 float16 representation of matrix
|
||||
__host__ __device__ const int* data() const; //pointer to float16 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 int16 representation of matrix
|
||||
__host__ __device__ const int* data() const; //pointer to int16 representation of matrix
|
||||
__host__ __device__ cumat4i operator+(const cumat4i& rhs) const;
|
||||
__host__ __device__ cumat4i operator-(const cumat4i& rhs) const;
|
||||
__host__ __device__ cumat4i operator*(const cumat4i& rhs) const;
|
||||
|
||||
Reference in New Issue
Block a user