nag_blast_dmax_val (f16jn) computes the largest component,
, of an
-element real vector
, and determines the smallest index,
, such that
Basic Linear Algebra Subprograms Technical (BLAST) Forum (2001)
Basic Linear Algebra Subprograms Technical (BLAST) Forum Standard University of Tennessee, Knoxville, Tennessee
http://www.netlib.org/blas/blast-forum/blas-report.pdf
None.
The BLAS standard requires accurate implementations which avoid unnecessary over/underflow (see Section 2.7 of
Basic Linear Algebra Subprograms Technical (BLAST) Forum (2001)).
None.
This example computes the largest component and index of that component for the vector
function f16jn_example
fprintf('f16jn example results\n\n');
n = int64(5);
x = [1 10 11 -2 9];
incx = int64(1);
[xloc, xmax] = f16jn(n, x, incx);
fprintf('max(');
fprintf('%5.1f',x);
fprintf(') = x(%4d) = %5.1f\n', xloc, xmax);