man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_MatrixTranspose_S8_S8 (3MLIB)

Name

mlib_MatrixTranspose_U8_U8, mlib_MatrixTranspose_U8C_U8C, mlib_MatrixTranspose_S8_S8, mlib_MatrixTranspose_S8C_S8C, mlib_MatrixTranspose_S16_S16, mlib_MatrixTranspose_S16C_S16C, mlib_MatrixTranspose_S32_S32, mlib_MatrixTranspose_S32C_S32C - matrix transpose

Synopsis

cc [ flag... ] file... –lmlib [ library... ]
#include <mlib.h>

mlib_status mlib_MatrixTranspose_U8_U8(mlib_u8 *z, 
     const mlib_u8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_U8C_U8C(mlib_u8 *z, 
     const mlib_u8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S8_S8(mlib_s8 *z, 
     const mlib_s8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S8C_S8C(mlib_s8 *z, 
     const mlib_s8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S16_S16(mlib_s16 *z, 
     const mlib_s16 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S16C_S16C(mlib_s16 *z, 
     const mlib_s16 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S32_S32(mlib_s32 *z, 
     const mlib_s32 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixTranspose_S32C_S32C(mlib_s32 *z, 
     const mlib_s32 *x, mlib_s32 m, mlib_s32 n);

Description

Each of these functions computes the transpose of the input matrix.

For real data, the following equation is used:

z[j*m + i] = x[i*n + j]

where i = 0, 1, ..., (m - 1); j = 0, 1, ..., (n - 1).

For complex data, the following equation is used:

z[2*(j*m + i)]     = x[2*(i*n + j)]
z[2*(j*m + i) + 1] = x[2*(i*n + j) + 1]

where i = 0, 1, ..., (m - 1); j = 0, 1, ..., (n - 1).

Parameters

Each of the functions takes the following arguments:

z

Pointer to the destination matrix. The output data type must be the same as the input data type.

x

Pointer to the source matrix.

m

Number of rows in the source matrix.

n

Number of columns in the source matrix.

Return Values

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

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See also

mlib_MatrixTranspose_U8(3MLIB), attributes(5)