Compute Library
18.05
|
Container for valid region of a window. More...
#include <Types.h>
Public Member Functions | |
ValidRegion () | |
Default constructor. More... | |
ValidRegion (const ValidRegion &)=default | |
Allow instances of this class to be copy constructed. More... | |
ValidRegion (ValidRegion &&)=default | |
Allow instances of this class to be move constructed. More... | |
ValidRegion & | operator= (const ValidRegion &)=default |
Allow instances of this class to be copied. More... | |
ValidRegion & | operator= (ValidRegion &&)=default |
Allow instances of this class to be moved. More... | |
~ValidRegion ()=default | |
Default destructor. More... | |
ValidRegion (const Coordinates &an_anchor, const TensorShape &a_shape) | |
Constructor for a valid region with default number of dimensions. More... | |
ValidRegion (const Coordinates &an_anchor, const TensorShape &a_shape, size_t num_dimensions) | |
Constructor for a valid region with specified number of dimensions. More... | |
int | start (unsigned int d) const |
Return the start of the valid region for the given dimension d . More... | |
int | end (unsigned int d) const |
Return the end of the valid region for the given dimension d . More... | |
ValidRegion & | set (size_t dimension, int start, size_t size) |
Accessor to set the value of anchor and shape for one of the dimensions. More... | |
Data Fields | |
Coordinates | anchor |
Anchor for the start of the valid region. More... | |
TensorShape | shape |
Shape of the valid region. More... | |
|
inline |
Default constructor.
Definition at line 209 of file Types.h.
References arm_compute::test::validation::shape.
|
default |
Allow instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
default |
Default destructor.
|
inline |
Constructor for a valid region with default number of dimensions.
[in] | an_anchor | Anchor for the start of the valid region. |
[in] | a_shape | Shape of the valid region. |
Definition at line 231 of file Types.h.
References arm_compute::test::fixed_point_arithmetic::detail::max(), and arm_compute::test::validation::shape.
|
inline |
Constructor for a valid region with specified number of dimensions.
[in] | an_anchor | Anchor for the start of the valid region. |
[in] | a_shape | Shape of the valid region. |
[in] | num_dimensions | Number of dimensions (must be >= number of dimensions of anchor and shape). |
Definition at line 244 of file Types.h.
References ARM_COMPUTE_ERROR_ON, arm_compute::test::fixed_point_arithmetic::detail::max(), and arm_compute::test::validation::shape.
|
inline |
Return the end of the valid region for the given dimension d
.
Definition at line 258 of file Types.h.
References arm_compute::test::validation::shape.
Referenced by arm_compute::test::is_in_valid_region().
|
default |
Allow instances of this class to be copied.
|
default |
Allow instances of this class to be moved.
|
inline |
Accessor to set the value of anchor and shape for one of the dimensions.
[in] | dimension | Dimension for which the value is set. |
[in] | start | Value to be set in anchor for the dimension. |
[in] | size | Value to be set in shape for the dimension. |
Definition at line 271 of file Types.h.
References ValidRegion::set(), and arm_compute::test::validation::shape.
Referenced by ValidRegion::set().
|
inline |
Return the start of the valid region for the given dimension d
.
Definition at line 252 of file Types.h.
Referenced by arm_compute::test::is_in_valid_region().
Coordinates anchor |
Anchor for the start of the valid region.
Definition at line 278 of file Types.h.
Referenced by arm_compute::intersect_valid_regions(), arm_compute::test::shape_to_valid_region_gaussian_pyramid_half(), and arm_compute::test::validation::validate().
TensorShape shape |
Shape of the valid region.
Definition at line 279 of file Types.h.
Referenced by arm_compute::intersect_valid_regions(), arm_compute::test::shape_to_valid_region_gaussian_pyramid_half(), and arm_compute::test::validation::validate().