Compute Library
 22.05
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 97 of file Validation.h.

Member Typedef Documentation

◆ value_type

using value_type = T

Underlying type.

Definition at line 101 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 113 of file Validation.h.

114  : _value{ value }
115  {
116  }

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 122 of file Validation.h.

123  {
124  return _value;
125  }

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