mediaLib Library Functions mlibVectorMaximumMagU8C(3MLIB)
NAME
mlibVectorMaximumMagU8C, mlibVectorMaximumMagS8C,
mlibVectorMaximumMagS16C, mlibVectorMaximumMagS32C,
mlibVectorMaximumMagF32C, mlibVectorMaximumMagD64C -
find the first element with the maximum magnitude in a vec-
tor
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorMaximumMagU8C(mlibu8 *max,
const mlibu8 *x, mlibs32 n);
mlibstatus mlibVectorMaximumMagS8C(mlibs8 *max,
const mlibs8 *x, mlibs32 n);
mlibstatus mlibVectorMaximumMagS16C(mlibs16 *max,
const mlibs16 *x, mlibs32 n);
mlibstatus mlibVectorMaximumMagS32C(mlibs32 *max,
const mlibs32 *x, mlibs32 n);
mlibstatus mlibVectorMaximumMagF32C(mlibf32 *max,
const mlibf32 *x, mlibs32 n);
mlibstatus mlibVectorMaximumMagD64C(mlibd64 *max,
const mlibd64 *x, mlibs32 n);
DESCRIPTION
Each of these functions finds the first element with the
maximum magnitude in a complex vector, then puts the real
and imaginary parts of it into max[0] and max[1], respec-
tively.
PARAMETERS
Each of the functions takes the following arguments:
max Pointer to the first element with the maximum magni-
tude.
x Pointer to the first element of the source vector.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorMaximumMagU8C(3MLIB)
n Number of elements in the source vector.
RETURN VALUES
Each of the functions returns MLIBSUCES if successful.
Otherwise it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibVectorMinimumMagU8C(3MLIB),
mlibMatrixMaximumMagU8C(3MLIB),
mlibMatrixMinimumMagU8C(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|