1
/* -- translated by f2c (version 20050501).
2
You must link the resulting object file with libf2c:
3
on Microsoft Windows system, link with libf2c.lib;
4
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5
or, if you install libf2c.a in a standard place, with -lf2c -lm
6
-- in that order, at the end of the command line, as in
8
Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
10
http://www.netlib.org/f2c/libf2c.zip
14
#include "arpack_internal.h"
17
/* Subroutine */ int igraphdscal_(integer *n, doublereal *da, doublereal *dx,
20
/* System generated locals */
24
static integer i__, m, mp1, nincx;
27
/* scales a vector by a constant. */
28
/* uses unrolled loops for increment equal to one. */
29
/* jack dongarra, linpack, 3/11/78. */
30
/* modified 3/93 to return if incx .le. 0. */
31
/* modified 12/3/93, array(1) declarations changed to array(*) */
34
/* Parameter adjustments */
38
if (*n <= 0 || *incx <= 0) {
45
/* code for increment not equal to 1 */
50
for (i__ = 1; i__2 < 0 ? i__ >= i__1 : i__ <= i__1; i__ += i__2) {
51
dx[i__] = *da * dx[i__];
56
/* code for increment equal to 1 */
67
for (i__ = 1; i__ <= i__2; ++i__) {
68
dx[i__] = *da * dx[i__];
77
for (i__ = mp1; i__ <= i__2; i__ += 5) {
78
dx[i__] = *da * dx[i__];
79
dx[i__ + 1] = *da * dx[i__ + 1];
80
dx[i__ + 2] = *da * dx[i__ + 2];
81
dx[i__ + 3] = *da * dx[i__ + 3];
82
dx[i__ + 4] = *da * dx[i__ + 4];