mediaLib Library Functions mlibVectorDotProdU8Sat(3MLIB)
NAME
mlibVectorDotProdU8Sat, mlibVectorDotProdU8CSat,
mlibVectorDotProdS8Sat, mlibVectorDotProdS8CSat,
mlibVectorDotProdS16Sat, mlibVectorDotProdS16CSat,
mlibVectorDotProdS32Sat, mlibVectorDotProdS32CSat -
vector dot product (inner product)
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorDotProdU8Sat(mlibd64 *z,
const mlibu8 *x, const mlibu8 *y, mlibs32 n);
mlibstatus mlibVectorDotProdU8CSat(mlibd64 *z,
const mlibu8 *x, const mlibu8 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS8Sat(mlibd64 *z,
const mlibs8 *x, const mlibs8 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS8CSat(mlibd64 *z,
const mlibs8 *x, const mlibs8 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS16Sat(mlibd64 *z,
const mlibs16 *x,const mlibs16 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS16CSat(mlibd64 *z,
const mlibs16 *x, const mlibs16 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS32Sat(mlibd64 *z,
const mlibs32 *x, const mlibs32 *y, mlibs32 n);
mlibstatus mlibVectorDotProdS32CSat(mlibd64 *z,
const mlibs32 *x, const mlibs32 *y, mlibs32 n);
DESCRIPTION
Each of these functions computes the dot product of two vec-
tors, defined by the following equation:
Z = X . Y*
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorDotProdU8Sat(3MLIB)
where Y* is the conjugate of the Y vector.
For real data, the following equation is used:
n-1
z[0] = SUM (x[i]*y[i])
i=0
For complex data, the following equation is used:
n-1
z[0] = SUM (x[2*i]*y[2*i] ] x[2*i ] 1]*y[2*i ] 1])
i=0
n-1
z[1] = SUM (x[2*i ] 1]*y[2*i] - x[2*i]*y[2*i ] 1])
i=0
PARAMETERS
Each of the functions takes the following arguments:
z Pointer to the dot product of the two vectors.
x Pointer to the first element of the first source vec-
tor.
y Pointer to the first element of the second source vec-
tor.
n Number of elements in the vectors.
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:
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVectorDotProdU8Sat(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|