From f89a49f7bdd8d03400060488596c8757745e19cf Mon Sep 17 00:00:00 2001 From: John Richardson Date: Tue, 5 Sep 2017 11:21:56 +0100 Subject: COMPMID-503: Move MinMaxLocation to new validation Change-Id: I2d518b3a3f15e2c4786488593dac244c1d74a0f9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86533 Tested-by: Kaizen Reviewed-by: Moritz Pflanzer --- tests/IArrayAccessor.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/IArrayAccessor.h') diff --git a/tests/IArrayAccessor.h b/tests/IArrayAccessor.h index 73f8829ed2..f128d8f67e 100644 --- a/tests/IArrayAccessor.h +++ b/tests/IArrayAccessor.h @@ -41,7 +41,7 @@ public: virtual ~IArrayAccessor() = default; /** Number of elements of the tensor. */ - virtual int num_values() const = 0; + virtual size_t num_values() const = 0; /** Access to the buffer. * @@ -54,6 +54,14 @@ public: * @param[in] num The new array size in number of elements */ virtual void resize(size_t num) = 0; + + /** Reference to the element of the array located at the given index + * + * @param[in] index Index of the element + * + * @return A reference to the element of the array located at the given index. + */ + virtual T &at(size_t index) const = 0; }; } // namespace test } // namespace arm_compute -- cgit v1.2.1