|
#include <dim4.hpp>
Public Member Functions | |
dim4 () | |
dim4 (dim_t first, dim_t second=1, dim_t third=1, dim_t fourth=1) | |
dim4 (const dim4 &other) | |
dim4 (const unsigned ndims, const dim_t *const dims) | |
dim_t | elements () |
dim_t | elements () const |
dim_t | ndims () |
dim_t | ndims () const |
bool | operator== (const dim4 &other) const |
bool | operator!= (const dim4 &other) const |
dim4 & | operator*= (const dim4 &other) |
dim4 & | operator+= (const dim4 &other) |
dim4 & | operator-= (const dim4 &other) |
dim_t & | operator[] (const unsigned dim) |
const dim_t & | operator[] (const unsigned dim) const |
dim_t * | get () |
const dim_t * | get () const |
Data Fields | |
dim_t | dims [4] |
dim4 | ( | ) |
dim_t elements | ( | ) |
dim_t elements | ( | ) | const |
|
inline |
|
inline |
dim_t ndims | ( | ) |
dim_t ndims | ( | ) | const |
bool operator!= | ( | const dim4 & | other | ) | const |
bool operator== | ( | const dim4 & | other | ) | const |
dim_t& operator[] | ( | const unsigned | dim | ) |
const dim_t& operator[] | ( | const unsigned | dim | ) | const |
dim_t dims[4] |