nag_blast_damax_val (f16jq) computes, with respect to absolute value, 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 with respect to absolute value and index of that component for the vector
function f16jq_example
fprintf('f16jq example results\n\n');
n = int64(5);
x = [1 10 11 -2 9];
incx = int64(1);
[xloc, xmax] = f16jq(n, x, incx);
fprintf('maxabs(');
fprintf('%5.1f',x);
fprintf(') = |x(%4d)| = %5.1f\n', xloc, xmax);