ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci_interpreter_pal::FloorModFn< T, > Struct Template Reference

#include <PALBinaryOpCommon.h>

Public Member Functions

operator() (T lhs, T rhs)
 

Detailed Description

template<typename T, std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
struct luci_interpreter_pal::FloorModFn< T, >

Definition at line 37 of file PALBinaryOpCommon.h.

Member Function Documentation

◆ operator()()

template<typename T , std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
T luci_interpreter_pal::FloorModFn< T, >::operator() ( lhs,
rhs 
)
inline

Definition at line 39 of file PALBinaryOpCommon.h.

40 {
41 T trunc_mod = std::fmod(lhs, rhs);
42 return (trunc_mod != 0) && ((rhs < 0) != (trunc_mod < 0)) ? (trunc_mod + rhs) : trunc_mod;
43 }

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