SRAMP/DRAMP/IRAMP | Generate linear ramp |
Name SRAMP/DRAMP/IRAMP
Generate linear ramp
Purpose Given real or integer scalars a and h, these subprograms generate a linear ramp function
xi = a + (i – 1)h, i = 1, 2, …, n.
xcan be stored in a
Usage | VECLIB: |
|
| INTEGER*4 | n, incx |
| REAL*4 | a, h, x(lenx) |
| CALL SRAMP(n, a, h, x, incx) | |
| INTEGER*4 | n, incx |
| REAL*8 | a, h, x(lenx) |
| CALL DRAMP(n, a, h, x, incx) | |
| INTEGER*4 | n, incx, a, h, x(lenx) |
| CALL IRAMP(n, a, h, x, incx) | |
| VECLIB8: |
|
| INTEGER*8 | n, incx |
| REAL*4 | a, h, x(lenx) |
| CALL SRAMP(n, a, h, x, incx) | |
| INTEGER*8 | n, incx |
| REAL*8 | a, h, x(lenx) |
| CALL DRAMP(n, a, h, x, incx) | |
| INTEGER*8 | n, incx, a, h, x(lenx) |
| CALL IRAMP(n, a, h, x, incx) | |
Input | n | Number of elements of x to be generated. |
| a | The scalar a. |
| h | The scalar h. |
| incx | Increment for the array x, incx ≠ 0. x is stored forward |
|
| in array x with increment incx; that is, xi is stored in |
|
| x((i−1)⋅incx+1). |
Use incx = 1 if the vector x is stored contiguously in array x; that is, if xi is stored in x(i). Refer to “BLAS
112HP MLIB User’s Guide