1mlib_VectorMaximumMag_U8C(3mMeLdIiBa)Lib Library Funcmtliiobn_sVectorMaximumMag_U8C(3MLIB)
2
3
4

NAME

6       mlib_VectorMaximumMag_U8C,  mlib_VectorMaximumMag_S8C, mlib_VectorMaxi‐
7       mumMag_S16C,  mlib_VectorMaximumMag_S32C,   mlib_VectorMaximumMag_F32C,
8       mlib_VectorMaximumMag_D64C  -  find  the first element with the maximum
9       magnitude in a vector
10

SYNOPSIS

12       cc [ flag... ] file... -lmlib [ library... ]
13       #include <mlib.h>
14
15       mlib_status mlib_VectorMaximumMag_U8C(mlib_u8 *max,
16            const mlib_u8 *x, mlib_s32 n);
17
18
19       mlib_status mlib_VectorMaximumMag_S8C(mlib_s8 *max,
20            const mlib_s8 *x, mlib_s32 n);
21
22
23       mlib_status mlib_VectorMaximumMag_S16C(mlib_s16 *max,
24             const mlib_s16 *x, mlib_s32 n);
25
26
27       mlib_status mlib_VectorMaximumMag_S32C(mlib_s32 *max,
28             const mlib_s32 *x, mlib_s32 n);
29
30
31       mlib_status mlib_VectorMaximumMag_F32C(mlib_f32 *max,
32             const mlib_f32 *x, mlib_s32 n);
33
34
35       mlib_status mlib_VectorMaximumMag_D64C(mlib_d64 *max,
36             const mlib_d64 *x, mlib_s32 n);
37
38

DESCRIPTION

40       Each of these functions finds the first element with the maximum magni‐
41       tude  in a complex vector, then puts the real and imaginary parts of it
42       into max[0] and max[1], respectively.
43

PARAMETERS

45       Each of the functions takes the following arguments:
46
47       max    Pointer to the first element with the maximum magnitude.
48
49
50       x      Pointer to the first element of the source vector.
51
52
53       n      Number of elements in the source vector.
54
55

RETURN VALUES

57       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
58       returns MLIB_FAILURE.
59

ATTRIBUTES

61       See attributes(5) for descriptions of the following attributes:
62
63
64
65
66       ┌─────────────────────────────┬─────────────────────────────┐
67       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
68       ├─────────────────────────────┼─────────────────────────────┤
69       │Interface Stability          │Committed                    │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │MT-Level                     │MT-Safe                      │
72       └─────────────────────────────┴─────────────────────────────┘
73

SEE ALSO

75       mlib_VectorMinimumMag_U8C(3MLIB),     mlib_MatrixMaximumMag_U8C(3MLIB),
76       mlib_MatrixMinimumMag_U8C(3MLIB), attributes(5)
77
78
79
80SunOS 5.11                        2 Mar 2007  mlib_VectorMaximumMag_U8C(3MLIB)
Impressum