1mlib_VectorMaximum_U8(3MLIBm)ediaLib Library Functionmslib_VectorMaximum_U8(3MLIB)
2
3
4
6 mlib_VectorMaximum_U8, mlib_VectorMaximum_S8, mlib_VectorMaximum_S16,
7 mlib_VectorMaximum_S32, mlib_VectorMaximum_F32, mlib_VectorMaximum_D64
8 - find the maximum value in a vector
9
11 cc [ flag... ] file... -lmlib [ library... ]
12 #include <mlib.h>
13
14 mlib_status mlib_VectorMaximum_U8(mlib_u8 *max, const mlib_u8 *x,
15 mlib_s32 n);
16
17
18 mlib_status mlib_VectorMaximum_S8(mlib_s8 *max, const mlib_s8 *x,
19 mlib_s32 n);
20
21
22 mlib_status mlib_VectorMaximum_S16(mlib_s16 *max, const mlib_s16 *x,
23 mlib_s32 n);
24
25
26 mlib_status mlib_VectorMaximum_S32(mlib_s32 *max, const mlib_s32 *x,
27 mlib_s32 n);
28
29
30 mlib_status mlib_VectorMaximum_F32(mlib_f32 *max, const mlib_f32 *x,
31 mlib_s32 n);
32
33
34 mlib_status mlib_VectorMaximum_D64(mlib_d64 *max, const mlib_d64 *x,
35 mlib_s32 n);
36
37
39 Each of these functions finds the maximum value of all elements in a
40 vector.
41
42
43 The following equation is used:
44
45 max[0] = MAX{ x[i] i = 0, 1, ..., (n - 1) }
46
47
49 Each of the functions takes the following arguments:
50
51 max Pointer to the maximum value.
52
53
54 x Pointer to the first element of the source vector.
55
56
57 n Number of elements in the source vector.
58
59
61 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
62 returns MLIB_FAILURE.
63
65 See attributes(5) for descriptions of the following attributes:
66
67
68
69
70 ┌─────────────────────────────┬─────────────────────────────┐
71 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
72 ├─────────────────────────────┼─────────────────────────────┤
73 │Interface Stability │Committed │
74 ├─────────────────────────────┼─────────────────────────────┤
75 │MT-Level │MT-Safe │
76 └─────────────────────────────┴─────────────────────────────┘
77
79 mlib_VectorMinimum_U8(3MLIB), mlib_MatrixMaximum_U8(3MLIB),
80 mlib_MatrixMinimum_U8(3MLIB), attributes(5)
81
82
83
84SunOS 5.11 2 Mar 2007 mlib_VectorMaximum_U8(3MLIB)