Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core
[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
Chapter 4
Vector and Elementwise Operations
4.1
Elementary Math Operations
4.1.1
vsip_vsin_
p
- Element-wise Sine of a Vector View
4.1.2
vsip_vasin_
p
- Element-wise Arcsine of a Vector View
4.1.3
vsip_vcos_
p
- Element-wise Cosine of a Vector View
4.1.4
vsip_vacos_
p
- Element-wise Arccosine of a Vector View
4.1.5
vsip_vtan_
p
- Element-wise Tangent of a Vector View
4.1.6
vsip_vatan_
p
- Element-wise Arctangent of a Vector View
4.1.7
vsip_vatan2_
p
- Element-wise Arctangent of Two Vector Views
4.1.8
vsip_
d
vexp_
p
- Element-wise Exponential of a Vector View
4.1.9
vsip_vexp10_
p
- Element-wise Base-10 Exponential of a Vector View
4.1.10
vsip_vlog_
p
- Element-wise Natural Logarithm of a Vector View
4.1.11
vsip_vlog10_
p
- Element-wise Base-10 Logarithm of a Vector View
4.1.12
vsip_
d
vsqrt_
p
- Element-wise Square Root of a Vector View
4.2
Unary Operations
4.2.1
vsip_
d
vneg_
p
- Negate Elements of a Vector View
4.2.2
vsip_vsumval_
p
- Compute the Sum of Elements in a Vector View
4.2.3
vsip_vsumsqval_
p
- Compute the Sum of Squares of Elements in a Vector View
4.2.4
vsip_
d
vmeanval_
p
- Compute Mean Value of Vector
4.2.5
vsip_
d
vmeansqval_
p
- Compute Mean of Squared Values
4.2.6
vsip_vsq_
p
- Square Elements of a Vector View
4.2.7
vsip_vrecip_
p
- Compute Reciprocal of Elements of a Vector View
4.2.8
vsip_
d
vmag_
p
- Compute Magnitude of Elements of a Vector View
4.2.9
vsip_vcmagsq_
p
- Element-wise Magnitude Squared of a Complex Vector View
4.2.10
vsip_cvconj_
p
- Element-wise Complex Conjugate of a Complex Vector View
4.2.11
vsip_veuler_
p
- Convert Real Vector to Complex Euler Representation
4.2.12
vsip_
d
vmodulate_
p
- Vector Modulation with Complex Carrier
4.2.13
vsip_
d
vrsqrt_
p
- Element-wise Reciprocal Square Root of a Vector View
4.3
Binary Operations
4.3.1
vsip_
d
vadd_
p
- Element-wise Addition of Two Vector Views
4.3.2
vsip_
d
vsub_
p
- Element-wise Subtraction of Two Vector Views
4.3.3
vsip_
d
vmul_
p
- Element-wise Multiplication of Two Vector Views
4.3.4
vsip_
d
vdiv_
p
- Element-wise Division of Two Vector Views
4.3.5
vsip_cvjmul_
p
- Element-wise Complex Conjugate Multiplication of Two Complex Vector Views
4.3.6
vsip_rcvadd_
p
- Element-wise Real-Complex Addition
4.3.7
vsip_rcvsub_
p
- Element-wise Real-Complex Subtraction
4.3.8
vsip_rcvmul_
p
- Element-wise Real-Complex Multiplication
4.3.9
vsip_crvsub_
p
- Element-wise Complex-Real Subtraction
4.3.10
vsip_
d
svadd_
p
- Add a Scalar to a Vector View
4.3.11
vsip_
d
svsub_
p
- Subtract a Scalar to a Vector View
4.3.12
vsip_
d
svmul_
p
- Multiply a Scalar by a Vector View
4.3.13
vsip_
d
svdiv_
p
- Divide a Scalar by a Vector View
4.3.14
vsip_rscvadd_
p
- Element-wise Real-Scalar-Complex Addition
4.3.15
vsip_rscvsub_
p
- Element-wise Real-Scalar-Complex Subtraction
4.3.16
vsip_rscvmul_
p
- Element-wise Real-Scalar-Complex Multiplication
4.3.17
vsip_
d
vmmul_
p
- Vector-Matrix Multiplication
4.3.18
vsip_rvcmmul_
p
- Real Vector-Complex Matrix Multiplication
4.3.19
vsip_
d
vexpoavg_
p
- Vector Exponential Average
4.3.20
vsip_vhypot_
p
- Vector Hypotenuse (Euclidean Norm)
4.4
Ternary Operations
4.4.1
vsip_
d
vam_
p
- Vector Add-Multiply
4.4.2
vsip_
d
vma_
p
- Vector Multiply-Add
4.4.3
vsip_
d
vmsb_
p
- Vector Multiply-Subtract
4.4.4
vsip_
d
vmsa_
p
- Vector Multiply-Scalar-Add
4.4.5
vsip_
d
vsam_
p
- Vector Vector-Add-Scalar-Multiply
4.4.6
vsip_
d
vsbm_
p
- Vector Subtract-Multiply
4.4.7
vsip_
d
vsma_
p
- Vector Vector-Scalar-Multiply-Add
4.4.8
vsip_
d
vsmsa_
p
- Vector Vector-Scalar-Multiply-Scalar-Add
4.5
Logical Operations
4.5.1
vsip_valltrue_
p
- Check if All Elements in Boolean Vector are True
4.5.2
vsip_vanytrue_
p
- Check if Any Element in Boolean Vector is True
4.5.3
vsip_vleq_
p
- Element-wise Equal Comparison
4.5.4
vsip_vlne_
p
- Element-wise Not-Equal Comparison
4.5.5
vsip_vllt_
p
- Element-wise Less-Than Comparison
4.5.6
vsip_vlle_
p
- Element-wise Lesser-Or-Equal-Than Comparison
4.5.7
vsip_vlgt_
p
- Element-wise Greater-Than Comparison
4.5.8
vsip_vlge_
p
- Element-wise Greater-Or-Equal-Than Comparison
4.6
Selection Operations
4.6.1
vsip_vclip_
p
- Clip Vector Elements Between Thresholds
4.6.2
vsip_vinvclip_
p
- Inverse Clip Vector Elements
4.6.3
vsip_vindexbool
- Find Indices of True Elements in Boolean Vector
4.6.4
vsip_vmaxval_
p
- Find the Maximum Value in a Vector View
4.6.5
vsip_vminval_
p
- Find the Minimum Value in a Vector View
4.6.6
vsip_vmax_
p
- Element-wise Maximum of Two Vector Views
4.6.7
vsip_vmin_
p
- Element-wise Minimum of Two Vector Views
4.6.8
vsip_vmaxmg_
p
- Element-wise Maximum of Magnitudes
4.6.9
vsip_vminmg_
p
- Element-wise Minimum of Magnitudes
4.6.10
vsip_vmaxmgval_
p
- Find Maximum Magnitude Value in Vector
4.6.11
vsip_vminmgval_
p
- Find Minimum Magnitude Value in Vector
4.6.12
vsip_vcmaxmg_
p
- Element-wise Maximum of Complex Vector Magnitudes
4.6.13
vsip_vcminmg_
p
- Element-wise Minimum of Complex Vector Magnitudes
4.6.14
vsip_vcmaxmgsqval_
p
- Find Maximum Magnitude Squared Value in Complex Vector
4.6.15
vsip_vcminmgsqval_
p
- Find Minimum Magnitude Squared Value in Complex Vector
4.7
Bitwise and Boolean Logical Operations
4.7.1
vsip_vnot_
p
- Boolean Vector Logical NOT
4.7.2
vsip_vand_
p
- Boolean Vector Logical AND
4.7.3
vsip_vor_
p
- Boolean Vector Logical OR
4.7.4
vsip_vxor_
p
- Boolean Vector Logical XOR
4.8
Element Generation Functions
4.8.1
vsip_
d
vfill_
p
- Fill a Vector View with a Scalar Value
4.8.2
vsip_vramp_
p
- Fill a Vector View with a Ramp
4.9
Copying Functions
4.9.1
vsip_
d
vcopy_
p
_
p
- Copy Vector Views
4.9.2
vsip_
d
mcopy_
p
- Copy Matrix Views
4.10
Manipulation Operations
4.10.1
vsip_vreal_
p
- Extract Real Part of a Complex Vector View
4.10.2
vsip_vimag_
p
- Extract Imaginary Part of a Complex Vector View
4.10.3
vsip_vcmplx_
p
- Create a Complex Vector View from Real and Imaginary Parts
4.10.4
vsip_
d
vgather_
p
- Gather Elements from a Vector
4.10.5
vsip_
d
vscatter_
p
- Scatter Elements to a Vector
4.10.6
vsip_
d
vswap_
p
- Swap Elements Between two Vectors
4.10.7
vsip_vrect_
p
- Convert Cartesian Coordinates to Complex Numbers
4.10.8
vsip_vpolar_
p
- Convert Polar Coordinates to Cartesian
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]