Find root of an input.
More...
Find root of an input.
- Note
- This function supports real inputs only. Complex inputs are not yet supported.
C Interface for root.
- Parameters
-
| [out] | out | will contain lhs th root of rhs |
| [in] | lhs | is nth root |
| [in] | rhs | is value |
| [in] | batch | specifies 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] | lhs | is nth root |
| [in] | rhs | is value |
- Returns
lhs th root of rhs
| AFAPI array af::root |
( |
const array & |
lhs, |
|
|
const double |
rhs |
|
) |
| |
C++ Interface for nth root.
- Parameters
-
| [in] | lhs | is nth root |
| [in] | rhs | is value |
- Returns
lhs th root of rhs
| AFAPI array af::root |
( |
const double |
lhs, |
|
|
const array & |
rhs |
|
) |
| |
C++ Interface for nth root.
- Parameters
-
| [in] | lhs | is nth root |
| [in] | rhs | is value |
- Returns
lhs th root of rhs