Adelsbach/VSIPL
Core Light Programming Reference Guide
DD-00014-015
Core Light

10.1 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);