nag_blast_zamax_val (f16js) computes, with respect to absolute value, the largest component,
, of an
-element complex 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.
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 f16js_example
fprintf('f16js example results\n\n');
n = int64(3);
x = [ -4 + 2.1i 3.7 + 4.5i -6 + 1.2i];
incx = int64(1);
[xloc, xmax] = f16js(n, x, incx);
fprintf('maxabs(x) = |x(%4d)| = %5.1f\n', xloc, xmax);