ARM Compute Library
17.03.1
|
Dimensions with dimensionality. More...
#include <Dimensions.h>
Public Member Functions | |
Dimensions (const Dimensions &)=default | |
Allow instances of this class to be copy constructed. More... | |
Dimensions & | operator= (const Dimensions &)=default |
Allow instances of this class to be copied. More... | |
Dimensions (Dimensions &&)=default | |
Allow instances of this class to be move constructed. More... | |
Dimensions & | operator= (Dimensions &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~Dimensions ()=0 |
Pure virtual destructor. More... | |
void | set (size_t dimension, T value) |
Accessor to set the value of one of the dimensions. More... | |
T | x () const |
Alias to access the size of the first dimension. More... | |
T | y () const |
Alias to access the size of the second dimension. More... | |
T | z () const |
Alias to access the size of the third dimension. More... | |
T | operator[] (size_t dimension) const |
Generic accessor to get the size of any dimension. More... | |
unsigned int | num_dimensions () const |
Returns the effective dimensionality of the tensor. More... | |
void | set_num_dimensions (size_t num_dimensions) |
Set number of dimensions. More... | |
Static Public Attributes | |
static constexpr size_t | num_max_dimensions = MAX_DIMS |
Number of dimensions the tensor has. More... | |
Dimensions with dimensionality.
Definition at line 41 of file Dimensions.h.
|
default |
Allow instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
inlinepure virtual |
|
inline |
Returns the effective dimensionality of the tensor.
Definition at line 108 of file Dimensions.h.
Referenced by arm_compute::intersect_valid_regions(), TensorInfo::num_dimensions(), and Dimensions< size_t >::set_num_dimensions().
|
default |
Allow instances of this class to be copied.
|
default |
Allow instances of this class to be moved.
|
inline |
Generic accessor to get the size of any dimension.
[in] | dimension | Dimension of the wanted size |
Definition at line 102 of file Dimensions.h.
|
inline |
Accessor to set the value of one of the dimensions.
[in] | dimension | Dimension for which the value is set. |
[in] | value | Value to be set for the dimension. |
Definition at line 73 of file Dimensions.h.
Referenced by arm_compute::compute_strides(), and arm_compute::intersect_valid_regions().
|
inline |
Set number of dimensions.
Definition at line 114 of file Dimensions.h.
|
inline |
Alias to access the size of the first dimension.
Definition at line 80 of file Dimensions.h.
|
inline |
Alias to access the size of the second dimension.
Definition at line 85 of file Dimensions.h.
Referenced by arm_compute::colorconvert_iyuv_to_rgb(), and arm_compute::colorconvert_nv12_to_rgb().
|
inline |
Alias to access the size of the third dimension.
Definition at line 90 of file Dimensions.h.
|
static |
Number of dimensions the tensor has.
Definition at line 45 of file Dimensions.h.