A high-performance general-purpose compute library

Raise 2 to a power (or exponent). More...

Functions

AFAPI af_err af_pow2 (af_array *out, const af_array in)
 C Interface to raise 2 to a power (or exponent). More...
 

Detailed Description

Raise 2 to a power (or exponent).

Function Documentation

◆ af_pow2()

AFAPI af_err af_pow2 ( af_array out,
const af_array  in 
)

C Interface to raise 2 to a power (or exponent).

Parameters
[out]out2 raised to the power of in
[in]inexponent
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given