Math Vector Library
Programming Reference Manual C/C++
Version 1.0 DD-00002-010
Math Vector Library
Reference Manual (C/C++)
DD-00002-010
Jan Adelsbach
January 26, 2024
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
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 sine
6.15
vcospi
- Vector cosine
6.16
vtanpi
- Vector tangent
6.17
vasinpi
- Vector arcsine
6.18
vacospi
- Vector arccosine
6.19
vatanpi
- Vector 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
vlog
- Vector logarithm
8.5
vlog2
- Vector binary logarithm
8.6
vlog10
- Vector base-10 logarithm
8.7
vlog1p
- Vector logarithm
8.8
vpow
- Vector power
8.9
vpows
- Vector power scalar exponent
8.10
vmod
- Vector modulus
9
Special Functions
9.1
verf
- Vector error function
9.2
verfc
- Vector complementary error function
9.3
vbesj0
- Vector Bessel Function
9.4
vbesy0
- Vector Bessel Function
9.5
vbesj1
- Vector Bessel Function
9.6
vbesy1
- Vector Bessel Function
9.7
vbesjn
- Vector Bessel Function
9.8
vbesyn
- Vector Bessel Function
9.9
vlgamma
- Vector Log-Gamma
10
Other Functions
10.1
vabs
- Vector absolute value
10.2
vhypot
- Vector euclidean distance
10.3
vrem
- Vector remainder
11
Arithmetic Functions
11.1
vadd
- Vector addition
11.2
vsadd
- Vector scalar addition
11.3
vsub
- Vector subtraction
11.4
vssub
- Vector scalar subtraction
11.5
vmul
- Vector multiplication
11.6
vsmul
- Vector scalar multiplication
11.7
vdiv
- Vector division
11.8
vsdiv
- Vector scalar division
11.9
vrecp
- Vector reciprocal
12
Complex Numbers
12.1
vcreal
- Vector complex real compoment
12.2
vcimag
- Vector complex imaginary compoment
12.3
vcabs
- Vector complex absolute value
12.4
vcarg
- Vector complex argument
12.5
vconj
- Vector complex conjugate
12.6
vcproj
- Vector complex Riemann sphere projection
12.7
vcexp
- Vector complex exponentiation
12.8
vclog
- Vector complex logarithm
12.9
vcsqrt
- Vector complex square root
12.10
vcpow
- Vector complex power
12.11
vcpows
- Vector complex power scalar exponent
13
Complex Trigonometric Functions
13.1
vcsin
- Vector complex sine
13.2
vccos
- Vector complex cosine
13.3
vctan
- Vector complex tangent
13.4
vcasin
- Vector complex arcsine
13.5
vcacos
- Vector complex arccosine
13.6
vcatan
- Vector complex arctangent
13.7
vcsinh
- Vector complex hyperbolic sine
13.8
vccosh
- Vector complex hyperbolic cosine
13.9
vctanh
- Vector complex hyperbolic tangent
13.10
vcasinh
- Vector complex hyperbolic arcsine
13.11
vcacosh
- Vector complex hyperbolic arccosine
13.12
vcatanh
- Vector complex hyperbolic arctangent
14
Complex Arithmetic
14.1
vcadd
- Vector complex addition
14.2
vcsadd
- Vector complex scalar subtraction
14.3
vcsub
- Vector complex subtraction
14.4
vcssub
- Vector complex scalar subtraction
14.5
vcmul
- Vector complex multiplication
14.6
vcsmul
- Vector complex scalar multiplication
14.7
vcmulc
- Vector complex conjugate multiplication
14.8
vcdiv
- Vector complex division
14.9
vcsdiv
- Vector complex scalar division
15
Acknowledgements
[
next
]