NAME

max_val - find maximum element in vector

PROTOTYPE

unitptr max_val( int n, unitptr dest)

ARGUMENTS

int n
vector dimension
unitptr dest
host unit

INTERFACE OF CREATED UNIT:

in_0[n]
(input field 0) input vector of n elements
out_0[1]
(output field 0) value of maximum element found
out_1[1]
(output field 1) index position of maximum element found

EXECUTION OF CREATED UNIT:

Compute value and index position of maximum element of input vector.

SEE ALSO:

.min_val, .min_vec, .max_vec

FILE

/local/homes/rhaschke/nst7/man/../o.linx86_64//../foldersrc/nst_math.c