List of all members.
Public Member Functions |
| Mask (size_t size=0, T haloVal=T(0), size_t range=0) |
__device__ __host__ void | set (size_t n, int i, T weight=T(0)) |
template<typename V > |
__forceinline__ __device__
__host__ T | get (size_t n, Array< V > array, size_t i) |
__device__ __host__ size_t | getRange () |
template<typename T>
class PSkel::Mask< T >
Constructor & Destructor Documentation
template<typename T >
PSkel::Mask< T >::Mask |
( |
size_t |
size = 0 , |
|
|
T |
haloVal = T(0) , |
|
|
size_t |
range = 0 |
|
) |
| |
The Mask constructor creates and allocates the specified 1-dimensional mask in the host memory.
- Parameters:
-
[in] | size | the size of the 1D mask. |
[in] | haloVal | the value used when the array is accessed out of bounds. |
[in] | range | the range of the mask; if range is 0, it is calculated as the maximum absolute value on the mask. |
Member Function Documentation
template<typename T >
template<typename V >
Get the n-th neighbor from the specified input array.
- Parameters:
-
[in] | n | the index of the neighbor. |
[in] | array | the input 1D array. |
[in] | i | the index for the central element. |
- Returns:
- the n-th neighbor of the given central element, from the input array.
Set the mask information for accessing the n-th neighbor for a given element.
- Parameters:
-
[in] | n | the index of the neighbor. |
[in] | i | the index translation needed for acessing the n-th neighbor. |
[in] | weight | the weight defined for the n-th neighbor. |
The documentation for this class was generated from the following files: