Computes the sqare root of the elements. More...

array sqrt (const array &x, bool isreal=false)
 Assume output will be real if isreal==true (faster), otherwise produce complex values if necessary (slower to check) More...
 

Detailed Description

Computes the sqare root of the elements.

This function will compute the square root of all the elements in the array

Function Documentation

array af::sqrt ( const array &  x,
bool  isreal = false 
)

Assume output will be real if isreal==true (faster), otherwise produce complex values if necessary (slower to check)

Examples:
examples/benchmarks/pi.cpp, examples/financial/blackscholes.cpp, examples/machine_learning/neuralnetwork.cpp, and examples/visualization/blip.cpp.