Adelsbach/VSIPL
Core +DP Programming Reference Guide
DD-00017-015
Core +DP

4.3.20 vsip_vhypot_p - Vector Hypotenuse (Euclidean Norm)

void vsip_vhypot_f(const vsip_vview_f *a, const vsip_vview_f *b, const vsip_vview_f *r); 
void vsip_vhypot_d(const vsip_vview_d *a, const vsip_vview_d *b, const vsip_vview_d *r);
Description

This function computes the element-wise hypotenuse (Euclidean norm) of corresponding elements from two vectors. The operation performs element-wise computation:

    √︃-2---2
ri=  ai +bi

for all i from 0 to n-1, where n is the length of the vectors.

Parameters
Notes