NAG Library Routine Document
F16ECF (BLAS_DAXPBY)
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.
1 Purpose
F16ECF (BLAS_DAXPBY) computes the sum of two scaled vectors, for real vectors and scalars.
2 Specification
INTEGER
N, INCX, INCY
REAL (KIND=nag_wp)
ALPHA, X(1+(N-1)*ABS(INCX)), BETA, Y(1+(N-1)*ABS(INCY))
The routine may be called by its
BLAST
name blas_daxpby.
3 Description
F16ECF (BLAS_DAXPBY) performs the operation
where
and
are
-element real vectors, and
and
real scalars. If
is less than or equal to zero, or if
is equal to zero and
is equal to
, this routine returns immediately.
4 References
5 Parameters
- 1: N – INTEGERInput
On entry: , the number of elements in and .
- 2: ALPHA – REAL (KIND=nag_wp)Input
On entry: the scalar .
- 3: X() – 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.
- 4: INCX – INTEGERInput
On entry: the increment in the subscripts of
X between successive elements of
.
Constraint:
.
- 5: BETA – REAL (KIND=nag_wp)Input
On entry: the scalar .
- 6: Y() – REAL (KIND=nag_wp) arrayInput/Output
On entry: the
-element vector
.
If ,
must be stored in , for .
If ,
must be stored in , for .
Intermediate elements of
Y are not referenced.
On exit: the updated vector
stored in the array elements used to supply the original vector
.
Intermediate elements of
Y are unchanged.
- 7: INCY – INTEGERInput
On entry: the increment in the subscripts of
Y between successive elements of
.
Constraint:
.
6 Error Indicators and Warnings
-
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
7 Accuracy
None.
9 Example
This example computes the result of a scaled vector accumulation for
9.1 Program Text
Program Text (f16ecfe.f90)
9.2 Program Data
Program Data (f16ecfe.d)
9.3 Program Results
Program Results (f16ecfe.r)