Function rc_vector_sum_inplace#
Defined in File vector.h
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.