1mlib_VectorMinimum_U8(3MLIBm)ediaLib Library Functionmslib_VectorMinimum_U8(3MLIB)
2
3
4

NAME

6       mlib_VectorMinimum_U8,  mlib_VectorMinimum_S8,  mlib_VectorMinimum_S16,
7       mlib_VectorMinimum_S32, mlib_VectorMinimum_F32,  mlib_VectorMinimum_D64
8       - find the minimum value in a vector
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_VectorMinimum_U8(mlib_u8 *min, const mlib_u8 *x,
15            mlib_s32 n);
16
17
18       mlib_status mlib_VectorMinimum_S8(mlib_s8 *min, const mlib_s8 *x,
19            mlib_s32 n);
20
21
22       mlib_status mlib_VectorMinimum_S16(mlib_s16 *min, const mlib_s16 *x,
23            mlib_s32 n);
24
25
26       mlib_status mlib_VectorMinimum_S32(mlib_s32 *min, const mlib_s32 *x,
27            mlib_s32 n);
28
29
30       mlib_status mlib_VectorMinimum_F32(mlib_f32 *min, const mlib_f32 *x,
31            mlib_s32 n);
32
33
34       mlib_status mlib_VectorMinimum_D64(mlib_d64 *min, const mlib_d64 *x,
35            mlib_s32 n);
36
37

DESCRIPTION

39       Each  of  these  functions finds the minimum value of all elements in a
40       vector.
41
42
43       The following equation is used:
44
45         max[0] = MIN{ x[i]  i = 0, 1, ..., (n - 1) }
46
47

PARAMETERS

49       Each of the functions takes the following arguments:
50
51       min    Pointer to the minimum 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

RETURN VALUES

61       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
62       returns MLIB_FAILURE.
63

ATTRIBUTES

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

SEE ALSO

79       mlib_VectorMaximum_U8(3MLIB),             mlib_MatrixMaximum_U8(3MLIB),
80       mlib_MatrixMinimum_U8(3MLIB), attributes(5)
81
82
83
84SunOS 5.11                        2 Mar 2007      mlib_VectorMinimum_U8(3MLIB)
Impressum