This commit is contained in:
Tobias Meyer Andersen 2025-01-08 14:54:03 +01:00
parent 486f7cc819
commit adc6afd749

View File

@ -119,50 +119,6 @@ public:
*/
const T* data() const;
/**
* @return fetch the first element in a GpuBuffer
*/
__host__ __device__ T& front()
{
#ifndef NDEBUG
assertHasElements();
#endif
return m_dataOnDevice[0];
}
/**
* @return fetch the last element in a GpuBuffer
*/
__host__ __device__ T& back()
{
#ifndef NDEBUG
assertHasElements();
#endif
return m_dataOnDevice[m_numberOfElements-1];
}
/**
* @return fetch the first element in a GpuBuffer
*/
__host__ __device__ T front() const
{
#ifndef NDEBUG
assertHasElements();
#endif
return m_dataOnDevice[0];
}
/**
* @return fetch the last element in a GpuBuffer
*/
__host__ __device__ T back() const
{
#ifndef NDEBUG
assertHasElements();
#endif
return m_dataOnDevice[m_numberOfElements-1];
}
/**
* @brief copyFromHost copies data from a Dune::BlockVector
* @param bvector the vector to copy from