vec_sqrt

Purpose

Returns a vector containing the square root of each element in the given vector.

This built-in function is valid only when -qarch is set to target POWER7® processors or higher.

Syntax

d=vec_sqrt(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Result and argument types
d a
vector float vector float
vector double vector double


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us