xpu
xpu::dim Struct Reference

Public Member Functions

 dim ()=default
 
constexpr dim (int _x)
 
constexpr dim (int _x, int _y)
 
constexpr dim (int _x, int _y, int _z)
 
constexpr int ndims () const
 
constexpr int linear () const
 

Public Attributes

int x = -1
 
int y = -1
 
int z = -1
 

Constructor & Destructor Documentation

◆ dim() [1/4]

xpu::dim::dim ( )
default

◆ dim() [2/4]

constexpr xpu::dim::dim ( int  _x)
inlineconstexpr

◆ dim() [3/4]

constexpr xpu::dim::dim ( int  _x,
int  _y 
)
inlineconstexpr

◆ dim() [4/4]

constexpr xpu::dim::dim ( int  _x,
int  _y,
int  _z 
)
inlineconstexpr

Member Function Documentation

◆ linear()

constexpr int xpu::dim::linear ( ) const
inlineconstexpr

◆ ndims()

constexpr int xpu::dim::ndims ( ) const
inlineconstexpr

Member Data Documentation

◆ x

int xpu::dim::x = -1

◆ y

int xpu::dim::y = -1

◆ z

int xpu::dim::z = -1

The documentation for this struct was generated from the following file: