1mlib_VectorNorm_U8_Sat(3MLImBe)diaLib Library Functiomnlsib_VectorNorm_U8_Sat(3MLIB)
2
3
4

NAME

6       mlib_VectorNorm_U8_Sat,        mlib_VectorNorm_S8_Sat,        mlib_Vec‐
7       torNorm_S16_Sat, mlib_VectorNorm_S32_Sat - vector norm
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_VectorNorm_U8_Sat(mlib_d64 *z, const mlib_u8 *x,
14            mlib_s32 n);
15
16
17       mlib_status mlib_VectorNorm_S8_Sat(mlib_d64 *z, const mlib_s8 *x,
18            mlib_s32 n);
19
20
21       mlib_status mlib_VectorNorm_S16_Sat(mlib_d64 *z, const mlib_s16 *x,
22            mlib_s32 n);
23
24
25       mlib_status mlib_VectorNorm_S32_Sat(mlib_d64 *z, const mlib_s32 *x,
26            mlib_s32 n);
27
28

DESCRIPTION

30       Each of these functions computes the vector normal.
31
32
33       The following equation is used:
34
35                  n-1
36         z[0] = ( SUM x[i]**2 )**0.5
37                  i=0
38
39

PARAMETERS

41       Each of the functions takes the following arguments:
42
43       z    Pointer to the norm of the vector.
44
45
46       x    Pointer to the first element of the source vector.
47
48
49       n    Number of elements in the vectors.
50
51

RETURN VALUES

53       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
54       returns MLIB_FAILURE.
55

ATTRIBUTES

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

SEE ALSO

71       attributes(5)
72
73
74
75SunOS 5.11                        2 Mar 2007     mlib_VectorNorm_U8_Sat(3MLIB)
Impressum