void vsip_svmul_f(vsip_scalar_f alpha, const vsip_vview_f* b, const vsip_vview_f* r); void vsip_svmul_d(vsip_scalar_d alpha, const vsip_vview_d* b, const vsip_vview_d* r); void vsip_csvmul_f(vsip_cscalar_f alpha, const vsip_cvview_f* b, const vsip_cvview_f* r); void vsip_csvmul_d(vsip_cscalar_d alpha, const vsip_cvview_d* b, const vsip_cvview_d* r);
This function multiplies each element of the vector view b by the scalar alpha and stores the result in the vector view r.
vsip_dscalar_p alpha: The scalar value to multiply by.
const vsip_dvview_p* b: Pointer to the source vector view.
const vsip_dvview_p* r: Pointer to the destination vector view.
vsip_vview_f *src_vector_view; vsip_vview_f *dst_vector_view; vsip_scalar_f scalar = 2.0; // Assuming src_vector_view and dst_vector_view have been properly initialized vsip_svmul_f(scalar, src_vector_view, dst_vector_view);