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_max

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.