CSI-DSP  Version 1.0.0
CSI DSP Software Library
Functions
Complex Matrix Subtraction

Functions

void csky_dsp_lib_mat_cx_sub16 (cq15_t *A, cq15_t *B, uint32 N, uint32 M, cq15_t *C)
 Q15 complex Matrix Subtraction. More...
 
void csky_dsp_lib_mat_cx_sub32 (cq31_t *A, cq31_t *B, uint32 N, uint32 M, cq31_t *C)
 Q31 complex Matrix subtraction. More...
 

Description

Element-by-element substaction of the complex matrix in same format, the source data us form A and B, the data in A is stored in an interleaved fashion(real, imag, real, imag,...), so, the computaional process is:

    *((C+i)+2*j+0) = *((A+i)+2*j+0) - *((B+i)+2*j+0), 0 <= i < N, 0 =< j < M.
    *((C+i)+2*j+1) = *((A+i)+2*j+1) - *((B+i)+2*j+1).

support for q15 and q31 format.

Function Documentation

void csky_dsp_lib_mat_cx_sub16 ( cq15_t A,
cq15_t B,
uint32  N,
uint32  M,
cq15_t C 
)
Parameters
[in]*Apoints to the input buffer a
[in]*Bpoints to the input buffer b
[in]Nthe number of rows of matrix
[in]Mthe number of colums of matrix
[out]*Cpoints to the output buffer
Returns
none

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The result will be saturated, so the out put value is in the range of [0x8000, 0x7FFF].
void csky_dsp_lib_mat_cx_sub32 ( cq31_t A,
cq31_t B,
uint32  N,
uint32  M,
cq31_t C 
)
Parameters
[in]*Apoints to the input buffer a
[in]*Bpoints to the input buffer b
[in]Nthe number of rows of matrix
[in]Mthe number of colums of matrix
[out]*Cpoints to the output buffer
Returns
none

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The result will be saturated, so the out put value is in the range of [0x80000000, 0x7FFFFFFF].