Note: before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.
The routine may be called by its
BLAST
name blas_damin_val.
3 Description
F16JRF (BLAS_DAMIN_VAL) computes, with respect to absolute value, the smallest component, , of an -element real vector , and determines the smallest index, , such that
4 References
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
5 Arguments
1: – INTEGERInput
On entry: , the number of elements in .
2: – REAL (KIND=nag_wp) arrayInput
On entry: the -element vector .
If ,
must be stored in , for .
If ,
must be stored in , for .
Intermediate elements of X are not referenced. If , X is not referenced.
3: – INTEGERInput
On entry: the increment in the subscripts of X between successive elements of .
Constraint:
.
4: – INTEGEROutput
On exit: , the index, from the set , of the smallest component of with respect to absolute value. If on input then K is returned as .
5: – REAL (KIND=nag_wp)Output
On exit: , the smallest component of with respect to absolute value. If on input then R is returned as .
6 Error Indicators and Warnings
If , an error message is printed and program execution is terminated.