![]() |
![]() |
Functions | |
| int_fast16_t | APULPF3_cartesianToPolarVector (APULPF3_ComplexVector *vec, APULPF3_ComplexVector *result) |
| APU function for converting a complex vector in cartesian format to polar format. More... | |
| int_fast16_t | APULPF3_polarToCartesianVector (APULPF3_ComplexVector *vec, float complex *temp, APULPF3_ComplexVector *result) |
| APU function for converting a complex vector in polar format to cartesian format. More... | |
| int_fast16_t | APULPF3_sortVector (APULPF3_ComplexVector *vec, APULPF3_ComplexVector *result) |
| APU function for sorting the real parts of a complex vector in descending order. This function ignores the complex parts of each element and makes no guarantees to their contents after the operation is complete. More... | |
| int_fast16_t | APULPF3_covMatrixSpatialSmoothing (APULPF3_ComplexVector *vec, uint16_t covMatrixSize, bool fbAveraging, APULPF3_ComplexTriangleMatrix *result) |
| APU function for covariance matrix computation using spatial smoothing and optionally forward-backward averaging. More... | |
| int_fast16_t | APULPF3_computeFFT (APULPF3_ComplexVector *vec, bool inverse, APULPF3_ComplexVector *result) |
| APU function for computing the Discrete Fourier transform (DFT) of a complex vector using the Fast Fourier Transform (FFT) algorithm. Optionally, the Inverse DFT can be computed. Combines two APU operations; first configuring the APU for a fourier transform, then actually computing it. More... | |
| int_fast16_t | APULPF3_vectorMaxMin (APULPF3_ComplexVector *vec, float scalarThreshold, bool min, APULPF3_ComplexVector *result) |
| APU function for computing max/min of the real part of a vector and a real value scalar APU accelerator for computing max/min of the real part of a vector and a real value scalar. More... | |
| int_fast16_t APULPF3_cartesianToPolarVector | ( | APULPF3_ComplexVector * | vec, |
| APULPF3_ComplexVector * | result | ||
| ) |
APU function for converting a complex vector in cartesian format to polar format.
| [in] | vec | a pointer to an input vector in cartesian format |
| [out] | result | a pointer to the vector where the output will be placed. Its size must be the same as that of the inputs. |
| APULPF3_STATUS_SUCCESS | The call was successful. |
| int_fast16_t APULPF3_polarToCartesianVector | ( | APULPF3_ComplexVector * | vec, |
| float complex * | temp, | ||
| APULPF3_ComplexVector * | result | ||
| ) |
APU function for converting a complex vector in polar format to cartesian format.
| [in] | vec | a pointer to an input vector in cartesian format |
| [in] | temp | a pointer to a temporary vector of the same length as vec to store temporary results. If the vec and result are not in APU memory, this argument is ignored and the temp vector is placed after the result in APU memory. |
| [out] | result | a pointer to a vector where the output will be placed. Its size must be the same as that of the inputs. |
| APULPF3_STATUS_SUCCESS | The call was successful. |
| APULPF3_STATUS_ERROR | The temp vector was not in APU space. |
| int_fast16_t APULPF3_sortVector | ( | APULPF3_ComplexVector * | vec, |
| APULPF3_ComplexVector * | result | ||
| ) |
APU function for sorting the real parts of a complex vector in descending order. This function ignores the complex parts of each element and makes no guarantees to their contents after the operation is complete.
| [in] | vec | a pointer to an input vector to be sorted |
| [out] | result | a pointer to a vector where the output will be placed. Its size must be the same as that of the inputs. |
| APULPF3_STATUS_SUCCESS | The call was successful. |
| int_fast16_t APULPF3_covMatrixSpatialSmoothing | ( | APULPF3_ComplexVector * | vec, |
| uint16_t | covMatrixSize, | ||
| bool | fbAveraging, | ||
| APULPF3_ComplexTriangleMatrix * | result | ||
| ) |
APU function for covariance matrix computation using spatial smoothing and optionally forward-backward averaging.
Given a received signal length N, a smaller matrix (LxL) with L < N is created by averaging (N-L+1) overlapped covariance matrices. When forward-backward averaging is applied, the output matrix becomes:
Where R is the spacially smoother matrix and J is the exchange matrix. R' signifies the conjugate transpose of R.
| [in] | vec | a pointer to an input vector |
| [in] | covMatrixSize | size of the output covariance matrix. The output triangular matrix will have rows and columns equal to this value. |
| [in] | fbAveraging | whether or not to perform forward-backwards averaging |
| [out] | result | a pointer to a upper triangle matrix where the output will be placed |
| APULPF3_STATUS_SUCCESS | The call was successful. |
| int_fast16_t APULPF3_computeFFT | ( | APULPF3_ComplexVector * | vec, |
| bool | inverse, | ||
| APULPF3_ComplexVector * | result | ||
| ) |
APU function for computing the Discrete Fourier transform (DFT) of a complex vector using the Fast Fourier Transform (FFT) algorithm. Optionally, the Inverse DFT can be computed. Combines two APU operations; first configuring the APU for a fourier transform, then actually computing it.
| [in] | vec | a pointer to an input vector. The vector needs to have a size equal to a power of two. |
| [in] | inverse | whether or not to perform IFFT instead of DFT |
| [out] | result | a pointer to a vector where the output will be placed |
| APULPF3_STATUS_SUCCESS | The call was successful. |
| int_fast16_t APULPF3_vectorMaxMin | ( | APULPF3_ComplexVector * | vec, |
| float | scalarThreshold, | ||
| bool | min, | ||
| APULPF3_ComplexVector * | result | ||
| ) |
APU function for computing max/min of the real part of a vector and a real value scalar APU accelerator for computing max/min of the real part of a vector and a real value scalar.
or if min is true:
in which, X and Y is the N-length complex vector, and scalarThreshold is a real scalar.
| [in] | vec | a pointer to an input vector |
| [in] | scalarThreshold | a real value threshold to be compared against |
| [in] | min | compute minimum if true, otherwise compute maximum |
| [out] | result | a pointer to the vector where the output will be placed. Its size must be the same as that of the inputs. |
| APULPF3_STATUS_SUCCESS | The call was successful. |