1mlib_MatrixMaximum_U8(3MLIBm)ediaLib Library Functionmslib_MatrixMaximum_U8(3MLIB)
2
3
4
6 mlib_MatrixMaximum_U8, mlib_MatrixMaximum_S8, mlib_MatrixMaximum_S16,
7 mlib_MatrixMaximum_S32, mlib_MatrixMaximum_F32, mlib_MatrixMaximum_D64
8 - find the maximum value in a matrix
9
11 cc [ flag... ] file... -lmlib [ library... ]
12 #include <mlib.h>
13
14 mlib_status mlib_MatrixMaximum_U8(mlib_u8 *max, const mlib_u8 *x,
15 mlib_s32 m, mlib_s32 n);
16
17
18 mlib_status mlib_MatrixMaximum_S8(mlib_s8 *max, const mlib_s8 *x,
19 mlib_s32 m, mlib_s32 n);
20
21
22 mlib_status mlib_MatrixMaximum_S16(mlib_s16 *max, const mlib_s16 *x,
23 mlib_s32 m, mlib_s32 n);
24
25
26 mlib_status mlib_MatrixMaximum_S32(mlib_s32 *max, const mlib_s32 *x,
27 mlib_s32 m, mlib_s32 n);
28
29
30 mlib_status mlib_MatrixMaximum_F32(mlib_f32 *max, const mlib_f32 *x,
31 mlib_s32 m, mlib_s32 n);
32
33
34 mlib_status mlib_MatrixMaximum_D64(mlib_d64 *max, const mlib_d64 *x,
35 mlib_s32 m, mlib_s32 n);
36
37
39 Each of these functions finds the maximum value of all elements in a
40 matrix.
41
42
43 It uses the following equation:
44
45 max[0] = MAX{ x[i] i = 0, 1, ..., (m*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 matrix.
55
56
57 m Number of rows in the source matrix.
58
59
60 n Number of columns in the source matrix.
61
62
64 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
65 returns MLIB_FAILURE.
66
68 See attributes(5) for descriptions of the following attributes:
69
70
71
72
73 ┌─────────────────────────────┬─────────────────────────────┐
74 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
75 ├─────────────────────────────┼─────────────────────────────┤
76 │Interface Stability │Committed │
77 ├─────────────────────────────┼─────────────────────────────┤
78 │MT-Level │MT-Safe │
79 └─────────────────────────────┴─────────────────────────────┘
80
82 mlib_MatrixMinimum_U8(3MLIB), mlib_VectorMaximum_U8(3MLIB), mlib_Vec‐
83 torMinimum_U8(3MLIB), attributes(5)
84
85
86
87SunOS 5.11 2 Mar 2007 mlib_MatrixMaximum_U8(3MLIB)