SROTI/DROTI | Apply sparse Givens rotation |
Name SROTI/DROTI
Apply sparse Givens rotation
Purpose Given real scalars c and s, a sparse vector x stored in compact form via a set of indices, and a dense vector y stored in full storage form, these subprograms apply the Givens rotation
xi | ← | c | s | ⋅ | xi | for i = 1, …, n. |
yi | c | yi |
More precisely, let x be a sparse
xi | ← | c | s | ⋅ | xi | for i = 1, …, m. |
yki | c | yki |
Usually, c and s have been determined by the companion subprogram SROTG or DROTG.
Usage | VECLIB: |
|
| INTEGER*4 | m, indx(m) |
| REAL*4 | x(m), y(n), c, s |
| CALL SROTI(m, x, indx, y, c, s) | |
| INTEGER*4 | m, indx(m) |
| REAL*8 | x(m), y(n), c, s |
CALL DROTI(m, x, indx, y, c, s)
VECLIB8:
INTEGER*8 | m, indx(m) |
REAL*4 | x(m), y(n), c, s |
CALL SROTI(m, x, indx, y, c, s) | |
INTEGER*8 | m, indx(m) |
REAL*8 | x(m), y(n), c, s |
CALL DROTI(m, x, indx, y, c, s)
120HP MLIB User’s Guide