IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Namespaces | Functions
pow.h File Reference

pow function; pow(x, y) = exp(y.log(x)) More...

#include <IPSDKUtil/IPSDKUtilExports.h>
#include <IPSDKUtil/InstructionSet/Arithmetic/detail/PowPack.h>
#include <IPSDKUtil/InstructionSet/PromotedType.h>
#include <IPSDKUtil/Tools/ForceInline.h>

Go to the source code of this file.

Namespaces

 ipsdk
 Main namespace for IPSDK library.
 
 ipsdk::simd
 Namespace agregating IPSDK SIMD routines and classes.
 

Functions

template<eInstructionSet::domain instructionSet, eInstructionSet::domain instructionSetFma, class PackT >
IPSDK_FORCEINLINE PackT ipsdk::simd::pow (const PackT &in1, const PackT &in2)
 given 2 input packs in1 and in2, returns exp(in2.log(in1)) More...
 
template<eInstructionSet::domain instructionSet, eInstructionSet::domain instructionSetFma, class PackT >
IPSDK_FORCEINLINE void ipsdk::simd::pow (const PackT &in1, const PackT &in2, PackT &out)
 

Detailed Description

pow function; pow(x, y) = exp(y.log(x))

Author
H. Delestre
Date
2017/03/21

given 2 packs A and B, with A = {a1, ..., an} and B = {b1, ..., bn}, add(A, B) returns C, with C ={ exp(b1.log(a1)), ..., exp(bn.log(an))}