integer vector types
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cuvec4::operator[](const int &I)
|
||||
__host__ __device__ double& cuvec4::operator[](const int &I)
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -33,7 +33,7 @@
|
||||
return x;
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cuvec4::operator[](const int &I) const
|
||||
__host__ __device__ const double& cuvec4::operator[](const int &I) const
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -290,7 +290,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat4::operator[](const int &I)
|
||||
__host__ __device__ double& cumat4::operator[](const int &I)
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -331,7 +331,7 @@
|
||||
return m00;
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat4::operator[](const int &I) const
|
||||
__host__ __device__ const double& cumat4::operator[](const int &I) const
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -372,22 +372,22 @@
|
||||
return m00;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat4::operator()(const int &I, const int &J)
|
||||
__host__ __device__ double& cumat4::operator()(const int &I, const int &J)
|
||||
{
|
||||
return (*this)[I+4*J];
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat4::operator()(const int &I, const int &J) const
|
||||
__host__ __device__ const double& cumat4::operator()(const int &I, const int &J) const
|
||||
{
|
||||
return (*this)[I+4*J];
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat4::at(const int &I, const int &J)
|
||||
__host__ __device__ double& cumat4::at(const int &I, const int &J)
|
||||
{
|
||||
return (*this)[I+4*J];
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat4::at(const int &I, const int &J) const
|
||||
__host__ __device__ const double& cumat4::at(const int &I, const int &J) const
|
||||
{
|
||||
return (*this)[I+4*J];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user