|
NAG[f16ecc] NAG[nag_daxpby] - Multiply real vector by scalar, preserving input vector
|
|
Calling Sequence
f16ecc(n, alpha, x, incx, beta, y, incy, 'fail'=fail)
nag_daxpby(. . .)
Parameters
|
n - integer;
|
|
|
Constraint: . .
|
|
|
alpha - float;
|
|
|
On entry: the scalar .
|
|
|
x - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array x must be at least .
|
|
On entry: the vector .
|
|
|
incx - integer;
|
|
|
On entry: the increment in the subscripts of x between successive elements of .
|
|
Constraint: . .
|
|
|
beta - float;
|
|
|
On entry: the scalar .
|
|
|
y - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array y must be at least .
|
|
On entry: the vector .
|
|
On exit: the updated vector .
|
|
|
incy - integer;
|
|
|
On entry: the increment in the subscripts of y between successive elements of .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_daxpby (f16ecc) performs the operation
|
|
Error Indicators and Warnings
|
|
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
On entry, . Constraint: .
On entry, . Constraint: .
|
|
Accuracy
|
|
The BLAS standard requires accurate implementations which avoid unnecessary over/underflow (see Section 2.7 of The BLAS Technical Forum Standard (2001)).
|
|
|
Examples
|
|
>
|
n := 5:
alpha := 2.0:
beta := 3.0:
incx := 1:
incy := 1:
x := Vector([1,2,3,4,5], datatype=float[8]):
y := Vector([1,2,3,4,5], datatype=float[8]):
NAG:-f16ecc(n, alpha, x, incx, beta, y, incy):
|
|
|