ArmNN
 24.08
squaredDifference< T > Struct Template Reference

#include <SquaredDifference.hpp>

Public Types

typedef T result_type
 
typedef T first_argument_type
 

Public Member Functions

operator() (const T &input1, const T &input2) const
 

Detailed Description

template<typename T>
struct armnn::squaredDifference< T >

Definition at line 14 of file SquaredDifference.hpp.

Member Typedef Documentation

◆ first_argument_type

Definition at line 17 of file SquaredDifference.hpp.

◆ result_type

typedef T result_type

Definition at line 16 of file SquaredDifference.hpp.

Member Function Documentation

◆ operator()()

T operator() ( const T &  input1,
const T &  input2 
) const
inline

Definition at line 20 of file SquaredDifference.hpp.

21  {
22  float diff = std::minus<>{}(static_cast<float>(input1),static_cast<float>(input2));
23  T squaredDiff = armnn::numeric_cast<T>(std::pow(static_cast<float>(diff), 2));
24  return squaredDiff;
25  }

The documentation for this struct was generated from the following file: