Éanna Ó Catháin | 20e5880 | 2018-12-04 10:29:06 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | namespace armnn |
| 9 | { |
| 10 | |
| 11 | template<typename T> |
Matthew Bentham | 9734f09 | 2022-05-16 12:04:58 +0100 | [diff] [blame] | 12 | struct minimum |
Éanna Ó Catháin | 20e5880 | 2018-12-04 10:29:06 +0000 | [diff] [blame] | 13 | { |
Matthew Bentham | 9734f09 | 2022-05-16 12:04:58 +0100 | [diff] [blame] | 14 | typedef T result_type; |
| 15 | typedef T first_argument_type; |
| 16 | |
Éanna Ó Catháin | 20e5880 | 2018-12-04 10:29:06 +0000 | [diff] [blame] | 17 | T |
| 18 | operator()(const T& input1, const T& input2) const |
| 19 | { |
| 20 | return std::min(input1, input2); |
| 21 | } |
| 22 | }; |
| 23 | |
| 24 | } //namespace armnn |
| 25 | |