1mlib_MatrixSubS_U8_U8_Mod(3mMeLdIiBa)Lib Library Funcmtliiobn_sMatrixSubS_U8_U8_Mod(3MLIB)
2
3
4
6 mlib_MatrixSubS_U8_U8_Mod, mlib_MatrixSubS_U8_U8_Sat, mlib_Matrix‐
7 SubS_U8C_U8C_Mod, mlib_MatrixSubS_U8C_U8C_Sat, mlib_Matrix‐
8 SubS_S8_S8_Mod, mlib_MatrixSubS_S8_S8_Sat, mlib_MatrixSubS_S8C_S8C_Mod,
9 mlib_MatrixSubS_S8C_S8C_Sat, mlib_MatrixSubS_S16_U8_Mod, mlib_Matrix‐
10 SubS_S16_U8_Sat, mlib_MatrixSubS_S16_S8_Mod, mlib_Matrix‐
11 SubS_S16_S8_Sat, mlib_MatrixSubS_S16_S16_Mod, mlib_Matrix‐
12 SubS_S16_S16_Sat, mlib_MatrixSubS_S16C_U8C_Mod, mlib_Matrix‐
13 SubS_S16C_U8C_Sat, mlib_MatrixSubS_S16C_S8C_Mod, mlib_Matrix‐
14 SubS_S16C_S8C_Sat, mlib_MatrixSubS_S16C_S16C_Mod, mlib_Matrix‐
15 SubS_S16C_S16C_Sat, mlib_MatrixSubS_S32_S16_Mod, mlib_Matrix‐
16 SubS_S32_S16_Sat, mlib_MatrixSubS_S32_S32_Mod, mlib_Matrix‐
17 SubS_S32_S32_Sat, mlib_MatrixSubS_S32C_S16C_Mod, mlib_Matrix‐
18 SubS_S32C_S16C_Sat, mlib_MatrixSubS_S32C_S32C_Mod, mlib_Matrix‐
19 SubS_S32C_S32C_Sat - matrix subtraction from scalar
20
22 cc [ flag... ] file... -lmlib [ library... ]
23 #include <mlib.h>
24
25 mlib_status mlib_MatrixSubS_U8_U8_Mod(mlib_u8 *z, const mlib_u8 *x,
26 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
27
28
29 mlib_status mlib_MatrixSubS_U8_U8_Sat(mlib_u8 *z, const mlib_u8 *x,
30 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
31
32
33 mlib_status mlib_MatrixSubS_U8C_U8C_Mod(mlib_u8 *z, const mlib_u8 *x,
34 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
35
36
37 mlib_status mlib_MatrixSubS_U8C_U8C_Sat(mlib_u8 *z, const mlib_u8 *x,
38 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
39
40
41 mlib_status mlib_MatrixSubS_S8_S8_Mod(mlib_s8 *z, const mlib_s8 *x,
42 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
43
44
45 mlib_status mlib_MatrixSubS_S8_S8_Sat(mlib_s8 *z, const mlib_s8 *x,
46 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
47
48
49 mlib_status mlib_MatrixSubS_S8C_S8C_Mod(mlib_s8 *z, const mlib_s8 *x,
50 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
51
52
53 mlib_status mlib_MatrixSubS_S8C_S8C_Sat(mlib_s8 *z, const mlib_s8 *x,
54 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
55
56
57 mlib_status mlib_MatrixSubS_S16_U8_Mod(mlib_s16 *z, const mlib_u8 *x,
58 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
59
60
61 mlib_status mlib_MatrixSubS_S16_U8_Sat(mlib_s16 *z, const mlib_u8 *x,
62 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
63
64
65 mlib_status mlib_MatrixSubS_S16_S8_Mod(mlib_s16 *z, const mlib_s8 *x,
66 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
67
68
69 mlib_status mlib_MatrixSubS_S16_S8_Sat(mlib_s16 *z, const mlib_s8 *x,
70 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
71
72
73 mlib_status mlib_MatrixSubS_S16_S16_Mod(mlib_s16 *z, const mlib_s16 *x,
74 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
75
76
77 mlib_status mlib_MatrixSubS_S16_S16_Sat(mlib_s16 *z, const mlib_s16 *x,
78 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
79
80
81 mlib_status mlib_MatrixSubS_S16C_U8C_Mod(mlib_s16 *z, const mlib_u8 *x,
82 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
83
84
85 mlib_status mlib_MatrixSubS_S16C_U8C_Sat(mlib_s16 *z, const mlib_u8 *x,
86 const mlib_u8 *c, mlib_s32 m, mlib_s32 n);
87
88
89 mlib_status mlib_MatrixSubS_S16C_S8C_Mod(mlib_s16 *z, const mlib_s8 *x,
90 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
91
92
93 mlib_status mlib_MatrixSubS_S16C_S8C_Sat(mlib_s16 *z, const mlib_s8 *x,
94 const mlib_s8 *c, mlib_s32 m, mlib_s32 n);
95
96
97 mlib_status mlib_MatrixSubS_S16C_S16C_Mod(mlib_s16 *z, const mlib_s16 *x,
98 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
99
100
101 mlib_status mlib_MatrixSubS_S16C_S16C_Sat(mlib_s16 *z, const mlib_s16 *x,
102 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
103
104
105 mlib_status mlib_MatrixSubS_S32_S16_Mod(mlib_s32 *z, const mlib_s16 *x,
106 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
107
108
109 mlib_status mlib_MatrixSubS_S32_S16_Sat(mlib_s32 *z, const mlib_s16 *x,
110 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
111
112
113 mlib_status mlib_MatrixSubS_S32_S32_Mod(mlib_s32 *z, const mlib_s32 *x,
114 const mlib_s32 *c, mlib_s32 m, mlib_s32 n);
115
116
117 mlib_status mlib_MatrixSubS_S32_S32_Sat(mlib_s32 *z, const mlib_s32 *x,
118 const mlib_s32 *c, mlib_s32 m, mlib_s32 n);
119
120
121 mlib_status mlib_MatrixSubS_S32C_S16C_Mod(mlib_s32 *z, const mlib_s16 *x,
122 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
123
124
125 mlib_status mlib_MatrixSubS_S32C_S16C_Sat(mlib_s32 *z, const mlib_s16 *x,
126 const mlib_s16 *c, mlib_s32 m, mlib_s32 n);
127
128
129 mlib_status mlib_MatrixSubS_S32C_S32C_Mod(mlib_s32 *z, const mlib_s32 *x,
130 const mlib_s32 *c, mlib_s32 m, mlib_s32 n);
131
132
133 mlib_status mlib_MatrixSubS_S32C_S32C_Sat(mlib_s32 *z, const mlib_s32 *x,
134 const mlib_s32 *c, mlib_s32 m, mlib_s32 n);
135
136
138 Each of these functions subtracts a matrix from a scalar.
139
140
141 For real data, the following equation is used:
142
143 z[i] = c[0] - x[i]
144
145
146
147 where i = 0, 1, ..., (m*n - 1).
148
149
150 For complex data, the following equation is used:
151
152 z[2*i] = c[0] - x[2*i]
153 z[2*i + 1] = c[1] - x[2*i + 1]
154
155
156
157 where i = 0, 1, ..., (m*n - 1).
158
160 Each of the functions takes the following arguments:
161
162 z Pointer to the destination matrix.
163
164
165 x Pointer to the source matrix.
166
167
168 c Pointer to the source scalar. When the function is used with com‐
169 plex data types, c[0] contains the scalar for the real part, and
170 c[1] contains the scalar for the imaginary part.
171
172
173 m Number of rows in the matrices.
174
175
176 n Number of columns in the matrices.
177
178
180 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
181 returns MLIB_FAILURE.
182
184 See attributes(5) for descriptions of the following attributes:
185
186
187
188
189 ┌─────────────────────────────┬─────────────────────────────┐
190 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
191 ├─────────────────────────────┼─────────────────────────────┤
192 │Interface Stability │Committed │
193 ├─────────────────────────────┼─────────────────────────────┤
194 │MT-Level │MT-Safe │
195 └─────────────────────────────┴─────────────────────────────┘
196
198 mlib_MatrixSubS_U8_Mod(3MLIB), attributes(5)
199
200
201
202SunOS 5.11 2 Mar 2007 mlib_MatrixSubS_U8_U8_Mod(3MLIB)