cuda::experimental::stf::pos4#

class pos4#

pos4 class defining a position within a multidimensional object (default value 0 in each axis)

Subclassed by cuda::experimental::stf::dim4

Public Functions

constexpr pos4() = default#
template<typename Integral>
inline explicit constexpr pos4(
Integral x,
Integral y = 0,
Integral z = 0,
Integral t = 0,
)#

Create a pos4 from its coordinates.

inline constexpr int get(size_t axis_id) const#

Get the position along a specific axis.

inline constexpr int operator()(int axis_id) const#

Get the position along a specific axis.

inline constexpr bool operator<(const pos4 &rhs) const#

Comparison of two pos4 in lexicographical order.

inline constexpr bool operator==(const pos4 &rhs) const#

Equality test between two pos4.

inline ::std::string to_string() const#

Convert the pos4 to a string.

Public Members

int x = 0#
int y = 0#
int z = 0#
int t = 0#