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

10.7 vsip_vcmagsq_p - Element-wise Magnitude Squared of a Complex Vector View

void vsip_vcmagsq_f(const vsip_cvview_f* a, const vsip_vview_f* r);
Description

This function computes the element-wise magnitude squared of the complex vector view a and stores the result in the real vector view r.

Parameters
Example

vsip_cvview_f *complex_vector; 
vsip_vview_f *real_vector; 
 
// Assuming complex_vector and real_vector have been properly initialized 
vsip_vcmagsq_f(complex_vector, real_vector);