nag_blast_dmin_val (f16jp) computes the smallest 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 smallest component and index of that component for the vector
function f16jp_example
fprintf('f16jp example results\n\n');
n = int64(5);
x = [1 10 11 -2 9];
incx = int64(1);
[xloc, xmin] = f16jp(n, x, incx);
fprintf('min(');
fprintf('%5.1f',x);
fprintf(') = x(%4d) = %5.1f\n', xloc, xmin);