The routine may be called by its
BLAST
name blas_ddot.
3
Description
f16eaf (blas_ddot) 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.
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: 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 .
6
Error Indicators and Warnings
If or , an error message is printed and program execution is terminated.
7
Accuracy
The dot product is computed using the BLAS routine DDOT.
f16eaf (blas_ddot) 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.
9
Further Comments
None.
10
Example
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.