ArrayFire: pow (original) (raw)

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

Functions
AFAPI af_err af_pow (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
C Interface to raise a base to a power (or exponent). More...
AFAPI array pow (const array &base, const array &exponent)
C++ Interface to raise a base to a power (or exponent). More...
AFAPI array pow (const array &base, const double exponent)
C++ Interface to raise a base to a power (or exponent). More...
AFAPI array pow (const double base, const array &exponent)
C++ Interface to raise a base to a power (or exponent). More...
AFAPI array pow2 (const array &in)
C++ Interface to raise 2 to a power (or exponent). More...

Raise a base to a power (or exponent).

af_pow()

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

Parameters

[out] out lhs raised to the power of rhs
[in] lhs base
[in] rhs exponent
[in] batch batch mode

Returns

AF_SUCCESS, if function returns successfully, else an af_err code is given

pow() [1/3]

C++ Interface to raise a base to a power (or exponent).

Computes the value of base raised to the power of exponent. The inputs can be two arrays or an array and a scalar.

Parameters

[in] base base
[in] exponent exponent

Returns

base raised to the power of exponent

Examples

pde/bhrt.cpp, and pde/boltzmann_cfd.cpp.

pow() [2/3]

C++ Interface to raise a base to a power (or exponent).

Computes the value of base raised to the power of exponent. The inputs can be two arrays or an array and a scalar.

Parameters

[in] base base
[in] exponent exponent

Returns

base raised to the power of exponent

pow() [3/3]

C++ Interface to raise a base to a power (or exponent).

Computes the value of base raised to the power of exponent. The inputs can be two arrays or an array and a scalar.

Parameters

[in] base base
[in] exponent exponent

Returns

base raised to the power of exponent

pow2()

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

Parameters

Returns

2 raised to the power