Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

6.1.2 vsip_cvjdot_p - Compute the Conjugate Dot Product of Two Complex Vector Views

vsip_cscalar_f vsip_cvjdot_f(const vsip_cvview_f* a, const vsip_cvview_f* b);
Description

This function computes the conjugate dot product of the complex vector views a and b and returns it. The conjugate dot product is computed as the sum of the element-wise products of the corresponding elements in the first vector and the conjugate of the elements in the second vector.

n∑︁   --
i aibi
Parameters
Return Value
Example

vsip_cvview_f *complex_vector_a; 
vsip_cvview_f *complex_vector_b; 
vsip_cscalar_f conjugate_dot_product; 
 
// Assuming complex_vector_a and complex_vector_b have been properly initialized 
conjugate_dot_product = vsip_cvjdot_f(complex_vector_a, complex_vector_b);