Visible to Intel only — GUID: GUID-7B3B6537-71E2-4BF5-A041-0365E72B211B
Visible to Intel only — GUID: GUID-7B3B6537-71E2-4BF5-A041-0365E72B211B
VM Mathematical Functions
This section describes VM functions that compute values of mathematical functions on real and complex vector arguments.
Each function is introduced by its short name, a brief description of its purpose, and the calling sequence for each type of data, as well as a description of the input/output arguments.
The input range of parameters is equal to the mathematical range of the input data type, unless the function description specifies input threshold values, which mark off the precision overflow, as follows:
FLT_MAX denotes the maximum number representable in single precision real data type
DBL_MAX denotes the maximum number representable in double precision real data type
Table "VM Mathematical Functions" lists available mathematical functions and associated data types.
Function | Data Types | Description |
---|---|---|
Arithmetic Functions | ||
v?add | s, d, c, z | Adds vector elements |
v?sub | s, d, c, z | Subtracts vector elements |
v?sqr | s, d | Squares vector elements |
v?mul | s, d, c, z | Multiplies vector elements |
v?mulbyconj | c, z | Multiplies elements of one vector by conjugated elements of the second vector |
v?conj | c, z | Conjugates vector elements |
v?abs | s, d, c, z | Computes the absolute value of vector elements |
v?arg | c, z | Computes the argument of vector elements |
v?linearfrac | s, d | Performs linear fraction transformation of vectors |
v?fmod | s, d | Performs element by element computation of the modulus function of vector a with respect to vector b |
v?remainder | s, d | Performs element by element computation of the remainder function on the elements of vector a and the corresponding elements of vector b |
Power and Root Functions | ||
v?inv | s, d | Inverts vector elements |
v?div | s, d, c, z | Divides elements of one vector by elements of the second vector |
v?sqrt | s, d, c, z | Computes the square root of vector elements |
v?invsqrt | s, d | Computes the inverse square root of vector elements |
v?cbrt | s, d | Computes the cube root of vector elements |
v?invcbrt | s, d | Computes the inverse cube root of vector elements |
v?pow2o3 | s, d | Computes the cube root of the square of each vector element |
v?pow3o2 | s, d | Computes the square root of the cube of each vector element |
v?pow | s, d, c, z | Raises each vector element to the specified power |
v?powx | s, d, c, z | Raises each vector element to the constant power |
v?powr | s, d | Computes a to the power b for elements of two vectors, where the elements of vector argument a are all non-negative |
v?hypot | s, d | Computes the square root of sum of squares |
Exponential and Logarithmic Functions | ||
v?exp | s, d, c, z | Computes the base e exponential of vector elements |
v?exp2 | s, d | Computes the base 2 exponential of vector elements |
v?exp10 | s, d | Computes the base 10 exponential of vector elements |
v?expm1 | s, d | Computes the base e exponential of vector elements decreased by 1 |
v?ln | s, d, c, z | Computes the natural logarithm of vector elements |
v?log2 | s, d | Computes the base 2 logarithm of vector elements |
v?log10 | s, d, c, z | Computes the base 10 logarithm of vector elements |
v?log1p | s, d | Computes the natural logarithm of vector elements that are increased by 1 |
v?logb | s, d | Computes the exponents of the elements of input vector a |
Trigonometric Functions | ||
v?cos | s, d, c, z | Computes the cosine of vector elements |
v?sin | s, d, c, z | Computes the sine of vector elements |
v?sincos | s, d | Computes the sine and cosine of vector elements |
v?cis | c, z | Computes the complex exponent of vector elements (cosine and sine combined to complex value) |
v?tan | s, d, c, z | Computes the tangent of vector elements |
v?acos | s, d, c, z | Computes the inverse cosine of vector elements |
v?asin | s, d, c, z | Computes the inverse sine of vector elements |
v?atan | s, d, c, z | Computes the inverse tangent of vector elements |
v?atan2 | s, d | Computes the four-quadrant inverse tangent of ratios of the elements of two vectors |
v?cospi | s, d | Computes the cosine of vector elements multiplied by π |
v?sinpi | s, d | Computes the sine of vector elements multiplied by π |
v?tanpi | s, d | Computes the tangent of vector elements multiplied by π |
v?acospi | s, d | Computes the inverse cosine of vector elements divided by π |
v?asinpi | s, d | Computes the inverse sine of vector elements divided by π |
v?atanpi | s, d | Computes the inverse tangent of vector elements divided by π |
v?atan2pi | s, d | Computes the four-quadrant inverse tangent of the ratios of the corresponding elementss of two vectors divided by π |
v?cosd | s, d | Computes the cosine of vector elements multiplied by π/180 |
v?sind | s, d | Computes the sine of vector elements multiplied by π/180 |
v?tand | s, d | Computes the tangent of vector elements multiplied by π/180 |
Hyperbolic Functions | ||
v?cosh | s, d, c, z | Computes the hyperbolic cosine of vector elements |
v?sinh | s, d, c, z | Computes the hyperbolic sine of vector elements |
v?tanh | s, d, c, z | Computes the hyperbolic tangent of vector elements |
v?acosh | s, d, c, z | Computes the inverse hyperbolic cosine of vector elements |
v?asinh | s, d, c, z | Computes the inverse hyperbolic sine of vector elements |
v?atanh | s, d, c, z | Computes the inverse hyperbolic tangent of vector elements. |
Special Functions | ||
v?erf | s, d | Computes the error function value of vector elements |
v?erfc | s, d | Computes the complementary error function value of vector elements |
v?cdfnorm | s, d | Computes the cumulative normal distribution function value of vector elements |
v?erfinv | s, d | Computes the inverse error function value of vector elements |
v?erfcinv | s, d | Computes the inverse complementary error function value of vector elements |
v?cdfnorminv | s, d | Computes the inverse cumulative normal distribution function value of vector elements |
v?lgamma | s, d | Computes the natural logarithm for the absolute value of the gamma function of vector elements |
v?tgamma | s, d | Computes the gamma function of vector elements |
v?expint1 | s, d | Computes the exponential integral of vector elements |
Rounding Functions | ||
v?floor | s, d | Rounds towards minus infinity |
v?ceil | s, d | Rounds towards plus infinity |
v?trunc | s, d | Rounds towards zero infinity |
v?round | s, d | Rounds to nearest integer |
v?nearbyint | s, d | Rounds according to current mode |
v?rint | s, d | Rounds according to current mode and raising inexact result exception |
v?modf | s, d | Computes the integer and fractional parts |
v?frac | s, d | Computes the fractional part |
Miscellaneous Functions | ||
v?copysign | s, d | Returns vector of elements of one argument with signs changed to match other argument elements |
v?nextafter | s, d | Returns vector of elements containing the next representable floating-point values following the values from the elements of one vector in the direction of the corresponding elements of another vector |
v?fdim | s, d | Returns vector containing the differences of the corresponding elements of the vector arguments if the first is larger and +0 otherwise |
v?fmax | s, d | Returns the larger of each pair of elements of the two vector arguments |
v?fmin | s, d | Returns the smaller of each pair of elements of the two vector arguments |
v?maxmag | s, d | Returns the element with the larger magnitude between each pair of elements of the two vector arguments |
v?minmag | s, d | Returns the element with the smaller magnitude between each pair of elements of the two vector arguments |