The routine may be called by the names f16eaf, nagf_blast_ddot or its BLAST name blas_ddot.
3Description
f16eaf performs the operation
where and are -element real vectors, and , and
real scalars. If is less than zero, or, if is equal to one and either or is equal to zero, this routine returns immediately.
4References
Basic Linear Algebra Subprograms Technical (BLAST) Forum (2001) Basic Linear Algebra Subprograms Technical (BLAST) Forum Standard University of Tennessee, Knoxville, Tennessee https://www.netlib.org/blas/blast-forum/blas-report.pdf
5Arguments
1: – IntegerInput
On entry: conj is not referenced and need not be set. The presence of this argument in the BLAST standard is for consistency with the interface of the complex variant of this routine.
2: – IntegerInput
On entry: , the number of elements in and .
3: – Real (Kind=nag_wp)Input
On entry: the scalar .
4: – 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 or , x is not referenced.
5: – IntegerInput
On entry: the increment in the subscripts of x between successive elements of .
Constraint:
.
6: – Real (Kind=nag_wp)Input
On entry: the scalar .
7: – 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 y are not referenced. If or , y is not referenced.
8: – IntegerInput
On entry: the increment in the subscripts of y between successive elements of .
Constraint:
.
9: – Real (Kind=nag_wp)Input/Output
On entry: the initial value, , to be updated. If , r need not be set on entry.
On exit: the value , scaled by and updated by the scaled dot product of and .
6Error Indicators and Warnings
If or , an error message is printed and program execution is terminated.
7Accuracy
The dot product is computed using the BLAS routine DDOT.
f16eaf makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
9Further Comments
None.
10Example
This example computes the scaled sum of two dot products, , where
and are stored in reverse order, and is stored in reverse order in every other element of a real array.