Content-type: text/html Man page of mlib_MatrixTranspose_U8_U8

mlib_MatrixTranspose_U8_U8

Section: mediaLib Library Functions (3MLIB)
Updated: 2 Mar 2007
Index Return to Main Contents
 

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 TYPEATTRIBUTE VALUE

Interface StabilityCommitted

MT-Level

 

SEE ALSO

mlib_MatrixTranspose_U8(3MLIB), attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUES
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:52 GMT, October 02, 2010