ArmNN
 24.08
Minimum.hpp
Go to the documentation of this file.
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>
12 struct minimum
13 {
14  typedef T result_type;
16 
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 
armnn::minimum
Definition: Minimum.hpp:12
armnn::minimum::operator()
T operator()(const T &input1, const T &input2) const
Definition: Minimum.hpp:18
armnn::minimum::result_type
T result_type
Definition: Minimum.hpp:14
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::minimum::first_argument_type
T first_argument_type
Definition: Minimum.hpp:15