EasyManua.ls Logo

Texas Instruments C28 Series - Subtraction of a Complex Vector and Another Complex Vector

Texas Instruments C28 Series
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function Descriptions
3.37 Subtraction of a Complex Vector and another Complex Vector
Description:
This module subtracts a complex vector from another complex vector.
Y
re
[i] = W
re
[i] X
re
[i]
Y
im
[i] = W
im
[i] X
im
[i]
Header File:
FPU.h
Declaration:
void sub_SP_CVxCV(complex_float
*
y, const complex_float
*
w,
const complex_float
*
x, const Uint16 N)
Usage:
sub_SP_CVxCV(y, w, x, N);
complex_float *y
result complex array
complex_float *w
input complex array 1
complex_float *x
input complex array 2
Uint16 N
length of w, x and y arrays
The type “complex_float” is defined as
typedef struct{
float32 dat[2];
}complex_float;
Element dat[0] is the real part, dat[1] is the imaginary part.
Alignment Requirements:
None
Notes:
1. N must be at least 2
Example:
#include "FPU.h"
#define N 4
complex_float w[N], x[N], y[N];
main()
{
sub_SP_CVxCV(y, w, x, N);
}
Benchmark Information:
Number of Cycles = 6*N + 15 cycles (including the call and return)
Sep 10, 2012 71

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals