1mlib_VectorDotProd_U8_Sat(3mMeLdIiBa)Lib Library Funcmtliiobn_sVectorDotProd_U8_Sat(3MLIB)
2
3
4
6 mlib_VectorDotProd_U8_Sat, mlib_VectorDotProd_U8C_Sat, mlib_VectorDot‐
7 Prod_S8_Sat, mlib_VectorDotProd_S8C_Sat, mlib_VectorDotProd_S16_Sat,
8 mlib_VectorDotProd_S16C_Sat, mlib_VectorDotProd_S32_Sat, mlib_Vector‐
9 DotProd_S32C_Sat - vector dot product (inner product)
10
12 cc [ flag... ] file... -lmlib [ library... ]
13 #include <mlib.h>
14
15 mlib_status mlib_VectorDotProd_U8_Sat(mlib_d64 *z,
16 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
17
18
19 mlib_status mlib_VectorDotProd_U8C_Sat(mlib_d64 *z,
20 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
21
22
23 mlib_status mlib_VectorDotProd_S8_Sat(mlib_d64 *z,
24 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
25
26
27 mlib_status mlib_VectorDotProd_S8C_Sat(mlib_d64 *z,
28 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
29
30
31 mlib_status mlib_VectorDotProd_S16_Sat(mlib_d64 *z,
32 const mlib_s16 *x,const mlib_s16 *y, mlib_s32 n);
33
34
35 mlib_status mlib_VectorDotProd_S16C_Sat(mlib_d64 *z,
36 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
37
38
39 mlib_status mlib_VectorDotProd_S32_Sat(mlib_d64 *z,
40 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
41
42
43 mlib_status mlib_VectorDotProd_S32C_Sat(mlib_d64 *z,
44 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
45
46
48 Each of these functions computes the dot product of two vectors,
49 defined by the following equation:
50
51 Z = X . Y*
52
53
54
55 where Y* is the conjugate of the Y vector.
56
57
58 For real data, the following equation is used:
59
60 n-1
61 z[0] = SUM (x[i]*y[i])
62 i=0
63
64
65
66 For complex data, the following equation is used:
67
68 n-1
69 z[0] = SUM (x[2*i]*y[2*i] + x[2*i + 1]*y[2*i + 1])
70 i=0
71
72 n-1
73 z[1] = SUM (x[2*i + 1]*y[2*i] - x[2*i]*y[2*i + 1])
74 i=0
75
76
78 Each of the functions takes the following arguments:
79
80 z Pointer to the dot product of the two vectors.
81
82
83 x Pointer to the first element of the first source vector.
84
85
86 y Pointer to the first element of the second source vector.
87
88
89 n Number of elements in the vectors.
90
91
93 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
94 returns MLIB_FAILURE.
95
97 See attributes(5) for descriptions of the following attributes:
98
99
100
101
102 ┌─────────────────────────────┬─────────────────────────────┐
103 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
104 ├─────────────────────────────┼─────────────────────────────┤
105 │Interface Stability │Committed │
106 ├─────────────────────────────┼─────────────────────────────┤
107 │MT-Level │MT-Safe │
108 └─────────────────────────────┴─────────────────────────────┘
109
111 attributes(5)
112
113
114
115SunOS 5.11 2 Mar 2007 mlib_VectorDotProd_U8_Sat(3MLIB)