blob: 46c04d9be4d53593fb5cf5de335a082ff77a1269 [file] [log] [blame]
Teresa Charlin50de4fa2021-05-31 18:47:33 +01001//
2// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <iostream>
9
10namespace armnn
11{
Matthew Bentham9734f092022-05-16 12:04:58 +010012template<typename T>
13struct log
Teresa Charlin50de4fa2021-05-31 18:47:33 +010014 {
Matthew Bentham9734f092022-05-16 12:04:58 +010015 typedef T result_type;
16 typedef T argument_type;
17
Teresa Charlin50de4fa2021-05-31 18:47:33 +010018 T
19 operator () (const T& inputData) const
20 {
21 // computes natural logarithm of inputData
22 return std::log(inputData);
23 }
24 };
25
26} //namespace armnn