blob: 1b8e6c3c74b1d6f1616157e15ef1a3fde092f0a2 [file] [log] [blame]
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +00001//
josh minor4a3c6102020-01-06 16:40:46 -06002// Copyright © 2019 Arm Ltd. All rights reserved.
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +00003// SPDX-License-Identifier: MIT
4//
5
josh minor4a3c6102020-01-06 16:40:46 -06006#pragma once
7
8#include <iostream>
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +00009
10namespace armnn
11{
Matthew Bentham9734f092022-05-16 12:04:58 +010012template<typename T>
13struct rsqrt
josh minor4a3c6102020-01-06 16:40:46 -060014 {
Matthew Bentham9734f092022-05-16 12:04:58 +010015 typedef T result_type;
16 typedef T argument_type;
17
josh minor4a3c6102020-01-06 16:40:46 -060018 T
19 operator () (const T& inputData) const
20 {
21 return 1 / std::sqrt(inputData);
22 }
23 };
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +000024
25} //namespace armnn