我要评分
获取效率
正确性
完整性
易理解

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 1 describes the values of <character>. Table 2 describes the values of <name>.

Table 1 <character> values

<character>

Description

s

Single-precision floating-point real number

c

Single-precision floating-point complex number

d

Double-precision floating-point real number

z

Double-precision floating-point complex number

Table 2 <name> values

<name>

Data Type

Description

add

s, d, c, z

Adds vectors.

sub

s, d, c, z

Subtracts vectors.

sqr

s, d

Squares a vector.

mul

s, d, c, z

Multiplies vectors.

div

s, d, c, z

Computes the quotient of vectors.

sqrt

s, d, c, z

Computes the square root of a vector.

cbrt

s, d

Computes the cube root of a vector.

abs

s, d, c, z

Computes the absolute value of a real number or the modulus of a complex number.

hypot

s, d

Computes the hypotenuse of a right triangle.

inv

s, d

Computes the reciprocal of a vector.

invcbrt

s, d

Computes the reciprocal of the cube root of a vector.

invsqrt

s, d

Computes the reciprocal of the square root of a vector.

linearfrac

s, d

Performs linear fraction transformation.

remainder

s, d

Computes the remainder.

pow

s, d, c, z

Power function a^b.

powx

s, d, c, z

Power function a^b (b as a scalar).

powr

s, d

Power function a^b (a ≥ 0).

pow2o3

s, d

Computes the value of x raised to the power of 2/3.

pow3o2

s, d

Computes the value of x raised to the power of 3/2.

exp

s, d, c, z

Computes the base-e exponential of a vector.

exp2

s, d

Computes the base-2 exponential of a vector.

exp10

s, d

Computes the base-10 exponential of a vector.

expm1

s, d

Subtracts 1 from the base-e exponential of a vector.

ln

s, d, c, z

Computes the base-e logarithm of a vector.

log10

s, d, c, z

Computes the base-10 logarithm of a vector.

log1p

s, d

Adds 1 to the base-e logarithm of a vector.

log2

s, d

Computes the base-2 logarithm of a vector.

logb

s, d

Rounds the base-2 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 arctangent of a vector.

atanpi

s, d

Computes the arctangent of a vector, divided by pi.

atan2

s, d

Computes the four-quadrant arctangent of two variables.

atan2pi

s, d

Computes the four-quadrant arctangent of two variables, divided by pi.

sincos

s, d

Computes the sine and cosine of a vector.

sinh

s, d

Hyperbolic sine function

cosh

s, d

Hyperbolic cosine function

tanh

s, d

Hyperbolic tangent function

asinh

s, d

Hyperbolic arcsine function

acosh

s, d

Hyperbolic arccosine function

atanh

s, d

Hyperbolic arctangent function

sind

s, d

The input parameter is the sine of the angle.

cosd

s, d

The input parameter is the cosine of the angle.

trunc

s, d

Computes the integer value rounded towards 0 for x.

round

s, d

Computes the value rounded to the nearest integer for x.

nearbyint

s, d

Computes the rounded integer value for x in the current rounding mode.

rint

s, d

Computes the rounded integer value for x in the current rounding mode.

frac

s, d

Computes the factional part of x.

fmod

s, d

Computes the modulus.

arg

c, z

Computes the argument.

conj

c, z

Computes the conjugate value.

mulbyconj

c, z

Multiplies the elements in the first vector by the conjugate values of elements in the second vector.