This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_vector_sum_inplace

Function Documentation

int rc_vector_sum_inplace(rc_vector_t *v1, rc_vector_t v2)

Adds vector v2 to v1 and leaves the result in v1.

The original contents of v1 are lost and v2 is left untouched. v1 and v2 must be of the same length.

Parameters
  • v1 – User’s vector struct, holds the result

  • v2[in] User’s vector struct

Returns

Returns 0 on success, otherwise -1.