1mlib_VectorSplit_U8_U8C(3MLmIeBd)iaLib Library Functimolnisb_VectorSplit_U8_U8C(3MLIB)
2
3
4

NAME

6       mlib_VectorSplit_U8_U8C,      mlib_VectorSplit_S8_S8C,     mlib_Vector‐
7       Split_S16_S16C, mlib_VectorSplit_S32_S32C - vector split
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_VectorSplit_U8_U8C(mlib_u8 *r, mlib_u8 *i,
14            const mlib_u8 *x, mlib_s32 n);
15
16
17       mlib_status mlib_VectorSplit_S8_S8C(mlib_s8 *r, mlib_s8 *i,
18            const mlib_s8 *x, mlib_s32 n);
19
20
21       mlib_status mlib_VectorSplit_S16_S16C(mlib_s16 *r, mlib_s16 *i,
22            const mlib_s16 *x, mlib_s32 n);
23
24
25       mlib_status mlib_VectorSplit_S32_S32C(mlib_s32 *r, mlib_s32 *i,
26            const mlib_s32 *x, mlib_s32 n);
27
28

DESCRIPTION

30       Each of these functions splits a complex vector into  separate  vectors
31       containing the real and imaginary parts.
32
33
34       The following equation is used:
35
36         r[k] = z[2*k]
37         i[k] = z[2*k + 1]
38
39
40
41       where k = 0, 1, ..., (n - 1).
42

PARAMETERS

44       Each of the functions takes the following arguments:
45
46       r    Pointer to the first element of the real part.
47
48
49       i    Pointer to the first element of the imaginary part.
50
51
52       x    Pointer  to the first complex element of the source vector. x[2*k]
53            contains the real part, and  x[2*k +  1]  contains  the  imaginary
54            part.
55
56
57       n    Number of elements in the vectors.
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_VectorMerge_U8C_U8(3MLIB), attributes(5)
80
81
82
83SunOS 5.11                        2 Mar 2007    mlib_VectorSplit_U8_U8C(3MLIB)
Impressum