|
|
◆ drot()
| void drot |
( |
int |
n, |
|
|
double |
x[], |
|
|
int |
incx, |
|
|
double |
y[], |
|
|
int |
incy, |
|
|
double |
c, |
|
|
double |
s |
|
) |
| |
Applies Givens plane rotation (BLAS 1)
- Purpose
- This routine applies the Givens plane rotation constructed by drotg.
- Parameters
-
| [in] | n | Number of elements in input vectors. (If n <= 0, returns without computation) |
| [in,out] | x[] | Array x[lx] (lx >= 1 + (n - 1)*abs(incx))
[in] Input vector x
[out] Vector x after rotation (x[i] = c*x[i] + s*y[i] (i = 0 to n-1)) |
| [in] | incx | Storage spacing between elements of x. |
| [in,out] | y[] | Array y[ly] (ly >= 1 + (n - 1)*abs(incy))
[in] Input vector y
[out] Vector y after rotation (y[i] = -s*x[i] + c*y[i] (i = 0 to n-1)) |
| [in] | incy | Storage spacing between elements of y. |
| [in] | c | c (cosine) value. |
| [in] | s | s (sine) value. |
- Reference
- BLAS
|