Find root of an input. More...

Functions

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

Detailed Description

Find root of an input.

Note
This function supports real inputs only. Complex inputs are not yet supported.

Function Documentation

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

C Interface for root.

Parameters
[out]outwill contain lhs th root of rhs
[in]lhsis nth root
[in]rhsis value
[in]batchspecifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::root ( const array lhs,
const array rhs 
)

C++ Interface for nth root.

Parameters
[in]lhsis nth root
[in]rhsis value
Returns
lhs th root of rhs
AFAPI array af::root ( const array lhs,
const double  rhs 
)

C++ Interface for nth root.

Parameters
[in]lhsis nth root
[in]rhsis value
Returns
lhs th root of rhs
AFAPI array af::root ( const double  lhs,
const array rhs 
)

C++ Interface for nth root.

Parameters
[in]lhsis nth root
[in]rhsis value
Returns
lhs th root of rhs