integer vector types
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cuvec3::operator[](const int &I)
|
||||
__host__ __device__ double& cuvec3::operator[](const int &I)
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -31,7 +31,7 @@
|
||||
return x;
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cuvec3::operator[](const int &I) const
|
||||
__host__ __device__ const double& cuvec3::operator[](const int &I) const
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -240,7 +240,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat3::operator[](const int &I)
|
||||
__host__ __device__ double& cumat3::operator[](const int &I)
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -267,7 +267,7 @@
|
||||
return m00;
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat3::operator[](const int &I) const
|
||||
__host__ __device__ const double& cumat3::operator[](const int &I) const
|
||||
{
|
||||
switch(I)
|
||||
{
|
||||
@ -294,22 +294,22 @@
|
||||
return m00;
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat3::operator()(const int &I, const int &J)
|
||||
__host__ __device__ double& cumat3::operator()(const int &I, const int &J)
|
||||
{
|
||||
return (*this)[I+3*J];
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat3::operator()(const int &I, const int &J) const
|
||||
__host__ __device__ const double& cumat3::operator()(const int &I, const int &J) const
|
||||
{
|
||||
return (*this)[I+3*J];
|
||||
}
|
||||
|
||||
__host__ __device__ float& cumat3::at(const int &I, const int &J)
|
||||
__host__ __device__ double& cumat3::at(const int &I, const int &J)
|
||||
{
|
||||
return (*this)[I+3*J];
|
||||
}
|
||||
|
||||
__host__ __device__ const float& cumat3::at(const int &I, const int &J) const
|
||||
__host__ __device__ const double& cumat3::at(const int &I, const int &J) const
|
||||
{
|
||||
return (*this)[I+3*J];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user