Function rc_vector_max#
Defined in File vector.h
Function Documentation#
-
int rc_vector_max(rc_vector_t v)#
Returns the index of the maximum value in v.
The value contained in the returned index is the equivalent to the infinity norm. If the max value occurs multiple times then the index of the first instance is returned.
- Parameters:
v – [in] User’s vector struct
- Returns:
Returns the index of the maximum value in v or -1 on error.