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.

4.3.4 vsip_vsumsqval_p - Compute the Sum of Squares of Elements in a Vector View

vsip_scalar_f vsip_vsumsqval_f(const vsip_vview_f* a);
Description

This function computes the sum of the squares of all elements in the vector view a and returns it.

∑︁n
   a2i
 i
Parameters
Return Value
Example

vsip_vview_f *vector_view; 
vsip_scalar_f sum_of_squares; 
 
// Assuming vector_view has been properly initialized 
sum_of_squares = vsip_vsumsqval_f(vector_view);