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

9.17 vsip_vatan2_p - Element-wise Arctangent of Two Vector Views

void vsip_vatan2_f(const vsip_vview_f* a, const vsip_vview_f* b, const vsip_vview_f* r);
Description

This function computes the element-wise arctangent of the quotient of the corresponding elements in the vector views a and b and stores the result in the vector view r.

      -1
ri= tan  (a/b)
Parameters
Example

vsip_vview_f *vector_view_a; 
vsip_vview_f *vector_view_b; 
vsip_vview_f *result_vector_view; 
 
// Assuming vector_view_a, vector_view_b, and result_vector_view have been properly initialized 
vsip_vatan2_f(vector_view_a, vector_view_b, result_vector_view);