sqrt

- Main Page
- Tutorials
- Functions
- Release Notes
- Examples

Functions
sqrt
Complete List of ArrayFire Functions ArrayFire Functions by Category » Mathematical functions » | Exponential and logarithmic functions

Square root of input arrays. More...

## Functions
AFAPI array | sqrt (const array &in)
| C++ Interface for square root of input. More...
AFAPI af_err | af_sqrt (af_array *out, const af_array in)
| C Interface for square root. More...

## Detailed Description

Square root of input arrays.

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

## Function Documentation

AFAPI af_err af_sqrt | ( | af_array * | out,
|  | const af_array | in
| ) |  |

C Interface for square root.

Parameters

  [out] | out | will contain the square root of `in`
  [in] | in | is input

Returns
  AF_SUCCESS if the execution completes properly

AFAPI array af::sqrt | ( | const array & | in | ) |

C++ Interface for square root of input.

Parameters

  [in] | in | is input

Returns
  the square root of input

Examples:
  black_scholes_options.cpp, brain_segmentation.cpp, deep_belief_net.cpp, filters.cpp, fractal.cpp, heston_model.cpp, monte_carlo_options.cpp, naive_bayes.cpp, neural_network.cpp, pi.cpp, and rbm.cpp.