Class to describe a number of elements in each dimension. Similar to @ref * Strides but not in bytes but number of elements. */
| 42 | * Strides but not in bytes but number of elements. |
| 43 | */ |
| 44 | class Steps : public Dimensions<uint32_t> |
| 45 | { |
| 46 | public: |
| 47 | /** Constructor to initialize the steps. |
| 48 | * |
| 49 | * @param[in] steps Values to initialize the steps. |
| 50 | */ |
| 51 | template <typename... Ts> |
| 52 | Steps(Ts... steps) : Dimensions{steps...} |
| 53 | { |
| 54 | // Initialize empty dimensions to 1 |
| 55 | std::fill(_id.begin() + _num_dimensions, _id.end(), 1); |
| 56 | } |
| 57 | /** Allow instances of this class to be copy constructed */ |
| 58 | constexpr Steps(const Steps &) = default; |
| 59 | /** Allow instances of this class to be copied */ |
| 60 | Steps &operator=(const Steps &) = default; |
| 61 | /** Allow instances of this class to be move constructed */ |
| 62 | constexpr Steps(Steps &&) = default; |
| 63 | /** Allow instances of this class to be moved */ |
| 64 | Steps &operator=(Steps &&) = default; |
| 65 | /** Default destructor */ |
| 66 | ~Steps() = default; |
| 67 | }; |
| 68 | } // namespace arm_compute |
| 69 | #endif // ACL_ARM_COMPUTE_CORE_STEPS_H |
no outgoing calls
no test coverage detected