Math Vector Library
Programming Reference Manual C/C++
Version 1.1 DD-00002-011
Math Vector Library 1.1
Reference Manual (C/C++)
DD-00002-011
Jan Adelsbach
February 17, 2025
Contents
1
About this Guide
1.1
Legal Information
1.2
Feedback and Contact
1.3
Introduction
1.4
Audience for This Guide
1.5
How to Use This Guide
1.6
Conventions Used in This Guide
2
Overview
2.1
Introduction
2.2
Thread Safety
2.3
SIMD/SPMD Unit Usage
2.4
Performance Characteristics
2.5
Extended Vector Sizes (
_64
suffix functions)
3
Utility
3.1
mvecver
- Version query
4
Rounding
4.1
vfloor
- Vector round down
4.2
vceil
- Vector round up
4.3
vtrunc
- Vector truncate
4.4
vround
- Vector rounding
5
Roots
5.1
vsqrt
- Vector square root
5.2
vrsqrt
- Vector reciprocal square root
5.3
vcbrt
- Vector cube root
5.4
vrcbrt
- Vector reciprocal cube root
6
Trigonometric Functions
6.1
vsin
- Vector sine
6.2
vcos
- Vector cosine
6.3
vtan
- Vector tangent
6.4
vasin
- Vector arcsine
6.5
vacos
- Vector arccosine
6.6
vatan
- Vector arctangent
6.7
vatan2
- Vector arctangent
6.8
vsind
- Vector sine
(degrees)
6.9
vcosd
- Vector cosine
(degrees)
6.10
vtand
- Vector tangent
(degrees)
6.11
vasind
- Vector arcsine
(degrees)
6.12
vacosd
- Vector arccosine
(degrees)
6.13
vatand
- Vector arctangent
(degrees)
6.14
vsinpi
- Vector half-cycle sine
6.15
vcospi
- Vector half-cycle cosine
6.16
vtanpi
- Vector half-cycle tangent
6.17
vasinpi
- Vector half-cycle arcsine
6.18
vacospi
- Vector half-cycle arccosine
6.19
vatanpi
- Vector half-cycle arctangent
7
Hypergeometric Functions
7.1
vsinh
- Vector hypergeometric sine
7.2
vcosh
- Vector hypergeometric cosine
7.3
vtanh
- Vector hypergeometric tangent
7.4
vasinh
- Vector hypergeometric arcsine
7.5
vacosh
- Vector hypergeometric arccosine
7.6
vatanh
- Vector hypergeometric arctangent
8
Exponentials and Logarithms
8.1
vexp
- Vector exponential
8.2
vexpm1
- Vector exponential
8.3
vexp2
- Vector binary exponential
8.4
vexp2m1
- Vector binary exponential minus one
8.5
vexp10
- Vector natural exponential
8.6
vexp10m1
- Vector natural exponential minus one
8.7
vlog
- Vector logarithm
8.8
vlog2
- Vector binary logarithm
8.9
vlog10
- Vector base-10 logarithm
8.10
vlog1p
- Vector logarithm
8.11
vpow
- Vector power
8.12
vpows
- Vector power scalar exponent
8.13
vmod
- Vector modulus
9
Error Functions
9.1
verf
- Vector error function
9.2
verfinv
- Vector inverse error function
9.3
verfc
- Vector complementary error function
9.4
verfcinv
- Vector inverse complementary error function
10
Bessel Functions
10.1
vbesj0
- Vector Bessel Function
10.2
vbesy0
- Vector Bessel Function
10.3
vbesj1
- Vector Bessel Function
10.4
vbesy1
- Vector Bessel Function
10.5
vbesjn
- Vector Bessel Function
10.6
vbesyn
- Vector Bessel Function
11
Gamma Function Related
11.1
vlgamma
- Vector Log-Gamma
12
Einstein Functions
12.1
veinst1
- Vector Einstein function
12.2
veinst2
- Vector Einstein function
12.3
veinst3
- Vector Einstein function
12.4
veinst4
- Vector Einstein function
13
Integrals
13.1
vsi
- Vector Sine Integral
13.2
vci
- Vector Cosine Integral
13.3
vti2
- Vector Inverse Tangent Integral
14
Other Functions
14.1
vabs
- Vector absolute value
14.2
vhypot
- Vector euclidean distance
14.3
vrem
- Vector remainder
15
Arithmetic Functions
15.1
vadd
- Vector addition
15.2
vsadd
- Vector scalar addition
15.3
vsub
- Vector subtraction
15.4
vssub
- Vector scalar subtraction
15.5
vmul
- Vector multiplication
15.6
vsmul
- Vector scalar multiplication
15.7
vdiv
- Vector division
15.8
vsdiv
- Vector scalar division
15.9
vrecp
- Vector reciprocal
16
Complex Numbers
16.1
vcreal
- Vector complex real compoment
16.2
vcimag
- Vector complex imaginary compoment
16.3
vcabs
- Vector complex absolute value
16.4
vcarg
- Vector complex argument
16.5
vconj
- Vector complex conjugate
16.6
vcproj
- Vector complex Riemann sphere projection
17
Complex Exponentials and Logarithms
17.1
vcexp
- Vector complex exponentiation
17.2
vclog
- Vector complex logarithm
17.3
vcpow
- Vector complex power
17.4
vcpows
- Vector complex power scalar exponent
17.5
vccis
- Vector complex Euler’s Formula
18
Complex Roots
18.1
vcsqrt
- Vector complex square root
19
Complex Trigonometric Functions
19.1
vcsin
- Vector complex sine
19.2
vccos
- Vector complex cosine
19.3
vctan
- Vector complex tangent
19.4
vcasin
- Vector complex arcsine
19.5
vcacos
- Vector complex arccosine
19.6
vcatan
- Vector complex arctangent
20
Complex Hypergeometric Functions
20.1
vcsinh
- Vector complex hyperbolic sine
20.2
vccosh
- Vector complex hyperbolic cosine
20.3
vctanh
- Vector complex hyperbolic tangent
20.4
vcasinh
- Vector complex hyperbolic arcsine
20.5
vcacosh
- Vector complex hyperbolic arccosine
20.6
vcatanh
- Vector complex hyperbolic arctangent
21
Complex Arithmetic
21.1
vcadd
- Vector complex addition
21.2
vcsadd
- Vector complex scalar subtraction
21.3
vcsub
- Vector complex subtraction
21.4
vcssub
- Vector complex scalar subtraction
21.5
vcmul
- Vector complex multiplication
21.6
vcsmul
- Vector complex scalar multiplication
21.7
vcmulc
- Vector complex conjugate multiplication
21.8
vcdiv
- Vector complex division
21.9
vcsdiv
- Vector complex scalar division
22
Acknowledgements
[
next
]