![]() |
![]() |
Functions | |
int_fast16_t | VCELPF3_dotProduct (VCELPF3_ComplexVector *vecA, VCELPF3_ComplexVector *vecB, bool conjugate, float complex *result) |
VCE function for calculating the dot product of two vectors, with the option to perform the complex conjugate on the second vector first. More... | |
int_fast16_t | VCELPF3_vectorMult (VCELPF3_ComplexVector *vecA, VCELPF3_ComplexVector *vecB, bool conjugate, VCELPF3_ComplexVector *result) |
VCE function for calculating the element-wise product of two vectors, with the option to perform the complex conjugate on the second vector first. More... | |
int_fast16_t | VCELPF3_vectorSum (VCELPF3_ComplexVector *vecA, VCELPF3_ComplexVector *vecB, VCELPF3_ComplexVector *result) |
VCE function for calculating the element-wise sum of two vectors. More... | |
int_fast16_t VCELPF3_dotProduct | ( | VCELPF3_ComplexVector * | vecA, |
VCELPF3_ComplexVector * | vecB, | ||
bool | conjugate, | ||
float complex * | result | ||
) |
VCE function for calculating the dot product of two vectors, with the option to perform the complex conjugate on the second vector first.
Defined as:
or:
in which, A, B are complex vectors and c is a complex scalar.
[in] | vecA | a pointer to the first input vector |
[in] | vecB | a pointer to the second input vector |
[in] | conjugate | whether or not to conjugate vecB |
[out] | result | a pointer where the output will be placed |
VCELPF3_STATUS_SUCCESS | The call was successful. |
VCELPF3_STATUS_ERROR | The input vectors were of different sizes. |
int_fast16_t VCELPF3_vectorMult | ( | VCELPF3_ComplexVector * | vecA, |
VCELPF3_ComplexVector * | vecB, | ||
bool | conjugate, | ||
VCELPF3_ComplexVector * | result | ||
) |
VCE function for calculating the element-wise product of two vectors, with the option to perform the complex conjugate on the second vector first.
If both arguments and the result pointer are already within VCE memory, the function will be executed in scratchpad mode. This means that it will assume pointers are placed so
Defined as:
or:
in which, A, B and C are complex vectors.
[in] | vecA | a pointer to the first input vector |
[in] | vecB | a pointer to the second input vector |
[in] | conjugate | whether or not to conjugate vecB |
[out] | result | a pointer to a vector where the result will be placed |
VCELPF3_STATUS_SUCCESS | The call was successful. |
VCELPF3_STATUS_ERROR | The input vectors were of different sizes. |
int_fast16_t VCELPF3_vectorSum | ( | VCELPF3_ComplexVector * | vecA, |
VCELPF3_ComplexVector * | vecB, | ||
VCELPF3_ComplexVector * | result | ||
) |
VCE function for calculating the element-wise sum of two vectors.
Defined as:
in which, A, B and C are complex vectors.
[in] | vecA | a pointer to the first input vector |
[in] | vecB | a pointer to the second input vector |
[out] | result | a pointer to a vector where the output will be placed. Its size should be the same as that of the inputs. |
VCELPF3_STATUS_SUCCESS | The call was successful. |
VCELPF3_STATUS_ERROR | The input vectors were of different sizes. |