A high-performance general-purpose compute library

Evaluate the nth root. More...

Functions

AFAPI array root (const array &nth_root, const array &value)
 C++ Interface to evaluate the nth root. More...
 
AFAPI array root (const array &nth_root, const double value)
 C++ Interface to evaluate the nth root. More...
 
AFAPI array root (const double nth_root, const array &value)
 C++ Interface to evaluate the nth root. More...
 
AFAPI af_err af_root (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface to evaluate the nth root. More...
 

Detailed Description

Evaluate the nth root.

Function Documentation

◆ af_root()

AFAPI af_err af_root ( af_array out,
const af_array  lhs,
const af_array  rhs,
const bool  batch 
)

C Interface to evaluate the nth root.

Parameters
[out]outlhs th root of rhs
[in]lhsnth root
[in]rhsvalue
[in]batchbatch mode
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ root() [1/3]

AFAPI array root ( const array nth_root,
const array value 
)

C++ Interface to evaluate the nth root.

Parameters
[in]nth_rootnth root
[in]valuevalue
Returns
nth_root th root of value

◆ root() [2/3]

AFAPI array root ( const array nth_root,
const double  value 
)

C++ Interface to evaluate the nth root.

Parameters
[in]nth_rootnth root
[in]valuevalue
Returns
nth_root th root of value

◆ root() [3/3]

AFAPI array root ( const double  nth_root,
const array value 
)

C++ Interface to evaluate the nth root.

Parameters
[in]nth_rootnth root
[in]valuevalue
Returns
nth_root th root of value