Template Function ripple::global_norm_idx¶
Defined in File thread_index.hpp
Function Documentation¶
-
template<typename
Dim
>
autoripple
::
global_norm_idx
(Dim &&dim) noexcept -> float¶ Gets the value of the global normalized index in the grid in the given dimension.
The dimension must be one of dim_x, dim_y, dim_z, or a value specifting the index of the dimension.
- Note
This index is local to the execution device, if multiple devices are used, the same global index may be on both devices.
- Return
The global normalized index of the thread in the given dimension.
- Parameters
dim
: the dimension to get the index for.
- Template Parameters
Dim
: the type of the dimension specifier.