MSP DSP Library
|
Data Structures | |
struct | msp_matrix_add_q15_params |
Parameter structure for the matrix add function. More... | |
struct | msp_matrix_add_iq31_params |
Parameter structure for the matrix add function. More... | |
struct | msp_matrix_sub_q15_params |
Parameter structure for the matrix subtract function. More... | |
struct | msp_matrix_sub_iq31_params |
Parameter structure for the matrix subtract function. More... | |
struct | msp_matrix_trans_q15_params |
Parameter structure for the matrix transpose function. More... | |
struct | msp_matrix_trans_iq31_params |
Parameter structure for the matrix transpose function. More... | |
struct | msp_matrix_mpy_q15_params |
Parameter structure for the real matrix multiply function. More... | |
struct | msp_matrix_mpy_iq31_params |
Parameter structure for the real matrix multiply function. More... | |
struct | msp_matrix_neg_q15_params |
Parameter structure for the real matrix negate function. More... | |
struct | msp_matrix_neg_iq31_params |
Parameter structure for the real matrix negate function. More... | |
struct | msp_matrix_abs_q15_params |
Parameter structure for the real matrix absolute value function. More... | |
struct | msp_matrix_abs_iq31_params |
Parameter structure for the real matrix absolute value function. More... | |
struct | msp_matrix_offset_q15_params |
Parameter structure for the real matrix offset function. More... | |
struct | msp_matrix_offset_iq31_params |
Parameter structure for the real matrix offset function. More... | |
struct | msp_matrix_scale_q15_params |
Parameter structure for the real matrix scale function. More... | |
struct | msp_matrix_scale_iq31_params |
Parameter structure for the real matrix scale function. More... | |
struct | msp_matrix_shift_q15_params |
Parameter structure for the real matrix shift function. More... | |
struct | msp_matrix_shift_iq31_params |
Parameter structure for the real matrix shift function. More... | |
Functions | |
msp_status | msp_matrix_add_q15 (const msp_matrix_add_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Addition of two real source matrices. More... | |
msp_status | msp_matrix_add_iq31 (const msp_matrix_add_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Addition of two real source matrices. More... | |
msp_status | msp_matrix_sub_q15 (const msp_matrix_sub_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Subtraction of two real source matrices. More... | |
msp_status | msp_matrix_sub_iq31 (const msp_matrix_sub_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Subtraction of two real source matrices. More... | |
msp_status | msp_matrix_mpy_q15 (const msp_matrix_mpy_q15_params *params, const _q15 *srcA, const _q15 *srcB, _q15 *dst) |
Multiplication of two real source matrices. More... | |
msp_status | msp_matrix_mpy_iq31 (const msp_matrix_mpy_iq31_params *params, const _iq31 *srcA, const _iq31 *srcB, _iq31 *dst) |
Multiplication of two real source matrices. More... | |
msp_status | msp_matrix_trans_q15 (const msp_matrix_trans_q15_params *params, const _q15 *src, _q15 *dst) |
Transposition of a source matrix. More... | |
msp_status | msp_matrix_trans_iq31 (const msp_matrix_trans_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Transposition of a source matrix. More... | |
msp_status | msp_matrix_neg_q15 (const msp_matrix_neg_q15_params *params, const _q15 *src, _q15 *dst) |
Negation of a source matrix. More... | |
msp_status | msp_matrix_neg_iq31 (const msp_matrix_neg_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Negation of a source matrix. More... | |
msp_status | msp_matrix_abs_q15 (const msp_matrix_abs_q15_params *params, const _q15 *src, _q15 *dst) |
Absolute value of a real source matrix. More... | |
msp_status | msp_matrix_abs_iq31 (const msp_matrix_abs_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Absolute value of a real source matrix. More... | |
msp_status | msp_matrix_offset_q15 (const msp_matrix_offset_q15_params *params, const _q15 *src, _q15 *dst) |
Constant offset of a real source matrix. More... | |
msp_status | msp_matrix_offset_iq31 (const msp_matrix_offset_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Constant offset of a real source matrix. More... | |
msp_status | msp_matrix_scale_q15 (const msp_matrix_scale_q15_params *params, const _q15 *src, _q15 *dst) |
Scale a real source matrix. More... | |
msp_status | msp_matrix_scale_iq31 (const msp_matrix_scale_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Scale a real source matrix. More... | |
msp_status | msp_matrix_shift_q15 (const msp_matrix_shift_q15_params *params, const _q15 *src, _q15 *dst) |
Bitwise shift of a real source matrix. More... | |
msp_status | msp_matrix_shift_iq31 (const msp_matrix_shift_iq31_params *params, const _iq31 *src, _iq31 *dst) |
Bitwise shift of a real source matrix. More... | |
Functions for performing matrix operations on real data.
msp_status msp_matrix_abs_iq31 | ( | const msp_matrix_abs_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Absolute value of a real source matrix.
dst = |src|
params | Pointer to the matrix absolute value structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_abs_q15 | ( | const msp_matrix_abs_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Absolute value of a real source matrix.
dst = |src|
params | Pointer to the matrix absolute value structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_add_iq31 | ( | const msp_matrix_add_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Addition of two real source matrices.
dst = srcA + srcB
params | Pointer to the matrix add parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_add_q15 | ( | const msp_matrix_add_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Addition of two real source matrices.
dst = srcA + srcB
params | Pointer to the matrix add parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_mpy_iq31 | ( | const msp_matrix_mpy_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Multiplication of two real source matrices.
dst = srcA * srcB
params | Pointer to the matrix multiply parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_mpy_q15 | ( | const msp_matrix_mpy_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Multiplication of two real source matrices.
dst = srcA * srcB
params | Pointer to the matrix multiply parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_neg_iq31 | ( | const msp_matrix_neg_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Negation of a source matrix.
dst = -src
params | Pointer to the matrix negate parameter structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_neg_q15 | ( | const msp_matrix_neg_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Negation of a source matrix.
dst = -src
params | Pointer to the matrix negate parameter structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_offset_iq31 | ( | const msp_matrix_offset_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Constant offset of a real source matrix.
dst = src + offset
params | Pointer to the matrix offset structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_offset_q15 | ( | const msp_matrix_offset_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Constant offset of a real source matrix.
dst = src + offset
params | Pointer to the matrix offset structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_scale_iq31 | ( | const msp_matrix_scale_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Scale a real source matrix.
dst = src * 2^SHIFT * SCALE
params | Pointer to the matrix scale structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_scale_q15 | ( | const msp_matrix_scale_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Scale a real source matrix.
dst = src * 2^SHIFT * SCALE
params | Pointer to the matrix scale structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_shift_iq31 | ( | const msp_matrix_shift_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Bitwise shift of a real source matrix.
dst = src * 2^SHIFT
params | Pointer to the matrix shift structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_shift_q15 | ( | const msp_matrix_shift_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Bitwise shift of a real source matrix.
dst = src * 2^SHIFT
params | Pointer to the matrix shift structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_sub_iq31 | ( | const msp_matrix_sub_iq31_params * | params, |
const _iq31 * | srcA, | ||
const _iq31 * | srcB, | ||
_iq31 * | dst | ||
) |
Subtraction of two real source matrices.
dst = srcA - srcB
params | Pointer to the matrix subtraction parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_sub_q15 | ( | const msp_matrix_sub_q15_params * | params, |
const _q15 * | srcA, | ||
const _q15 * | srcB, | ||
_q15 * | dst | ||
) |
Subtraction of two real source matrices.
dst = srcA - srcB
params | Pointer to the matrix subtraction parameter structure. |
srcA | Pointer to the first source data matrix. |
srcB | Pointer to the second source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_trans_iq31 | ( | const msp_matrix_trans_iq31_params * | params, |
const _iq31 * | src, | ||
_iq31 * | dst | ||
) |
Transposition of a source matrix.
dst = src'
params | Pointer to the matrix transpose parameter structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |
msp_status msp_matrix_trans_q15 | ( | const msp_matrix_trans_q15_params * | params, |
const _q15 * | src, | ||
_q15 * | dst | ||
) |
Transposition of a source matrix.
dst = src'
params | Pointer to the matrix transpose parameter structure. |
src | Pointer to the source data matrix. |
dst | Pointer to the destination data matrix. |