Function Description and Syntax
Function Description
The vector math library improves application performance by means of vector implementation of computing-intensive core mathematical functions, such as power, trigonometric, exponential, hyperbolic, logarithmic functions, and the like.
Function Naming Rules
v<character> <name> ( )
Table 5-1 describes the values of <character>. Table 5-2 describes the values of <name>.
<character> |
Description |
|---|---|
s |
Single-precision floating-point real type |
c |
Single-precision floating-point complex type |
d |
Double-precision floating-point real type |
z |
Double-precision floating-point complex type |
<name> |
Data Type |
Description |
|---|---|---|
add |
s, d |
Adds vectors. |
sub |
s, d |
Subtracts vectors. |
sqr |
s, d |
Squares a vector. |
mul |
s, d |
Multiplies vectors. |
div |
s, d |
Computes the quotient of vectors. |
sqrt |
s, d |
Computes the square root of a vector. |
pow |
s, d |
Raises a vector to the specified power. |
exp |
s, d |
Computes the base-e exponential of a vector. |
ln |
s, d |
Computes the base-e logarithm of a vector. |
log10 |
s, d |
Computes the base-10 logarithm of a vector. |
cos |
s, d |
Computes the cosine of a vector. |
sin |
s, d |
Computes the sine of a vector. |
tan |
s, d |
Computes the tangent of a vector. |
atan |
s, d |
Computes the arc tangent of a vector. |
atan2 |
s, d |
Computes the four-quadrant arc tangent of two variables. |
sincos |
s, d |
Computes the sine and cosine of a vector. |