A high-performance general-purpose compute library

Functions

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

Detailed Description

Raise 2 to a power (or exponent).

Function Documentation

◆ af_pow2()

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