Compute Library
 21.02
RelativeTolerance< T > Class Template Reference

Class reprensenting a relative tolerance value. More...

#include <Validation.h>

Public Types

using value_type = T
 Underlying type. More...
 

Public Member Functions

 RelativeTolerance ()=default
 
constexpr RelativeTolerance (value_type value)
 Constructor. More...
 
constexpr operator value_type () const
 Implicit conversion to the underlying type. More...
 

Detailed Description

template<typename T>
class arm_compute::test::validation::RelativeTolerance< T >

Class reprensenting a relative tolerance value.

Definition at line 86 of file Validation.h.

Member Typedef Documentation

◆ value_type

using value_type = T

Underlying type.

Definition at line 90 of file Validation.h.

Constructor & Destructor Documentation

◆ RelativeTolerance() [1/2]

RelativeTolerance ( )
default

◆ RelativeTolerance() [2/2]

constexpr RelativeTolerance ( value_type  value)
inlineexplicit

Constructor.

Parameters
[in]valueRelative tolerance value.

Definition at line 102 of file Validation.h.

103  : _value{ value }
104  {
105  }

Member Function Documentation

◆ operator value_type()

constexpr operator value_type ( ) const
inline

Implicit conversion to the underlying type.

Returns
the underlying type.

Definition at line 111 of file Validation.h.

112  {
113  return _value;
114  }

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