| 1 | /* laso/dlaran.f -- 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 |
| 7 | cc *.o -lf2c -lm |
| 8 | Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., |
| 9 | |
| 10 | http://www.netlib.org/f2c/libf2c.zip |
| 11 | */ |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | #include "v3p_netlib.h"cxx . . $ `<file>/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib.h`/ |
| 17 | |
| 18 | |
| 19 | /* *********************************************************************** */ |
| 20 | |
| 21 | /*< SUBROUTINE DLARAN(N, X) >*/ |
| 22 | /* Subroutine */ int dlaran_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:87:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *x) |
| 23 | { |
| 24 | /* Initialized data */ |
| 25 | |
| 26 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! iurand = 0; /* constant */ |
| 27 | |
| 28 | /* System generated locals */ |
| 29 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__1; |
| 30 | |
| 31 | /* Local variables */ |
| 32 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__; |
| 33 | extern doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! urand_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:302:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *); |
| 34 | |
| 35 | |
| 36 | /* THIS SUBROUTINE SETS THE VECTOR X TO RANDOM NUMBERS */ |
| 37 | |
| 38 | /* FORMAL PARAMETERS */ |
| 39 | |
| 40 | /*< INTEGER N >*/ |
| 41 | /*< DOUBLE PRECISION X(N) >*/ |
| 42 | |
| 43 | /* LOCAL VARIABLES */ |
| 44 | |
| 45 | /*< INTEGER I, IURAND >*/ |
| 46 | |
| 47 | /* FUNCTIONS CALLED */ |
| 48 | |
| 49 | /*< REAL URAND >*/ |
| 50 | /*< DOUBLE PRECISION DBLE >*/ |
| 51 | |
| 52 | /* SUBROUTINES CALLED */ |
| 53 | |
| 54 | /* NONE */ |
| 55 | |
| 56 | /* INITIALIZE SEED */ |
| 57 | |
| 58 | /*< DATA IURAND /0/ >*/ |
| 59 | /* Parameter adjustments */ |
| 60 | --x; |
| 61 | |
| 62 | /* Function Body */ |
| 63 | |
| 64 | /*< DO 10 I = 1, N >*/ |
| 65 | i__1 = *n; |
| 66 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 67 | /*< X(I) = DBLE(URAND(IURAND)) - 0.5D0 >*/ |
| 68 | x[i__] = (doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`!) urand_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:302:9`!(&iurand) - .5; |
| 69 | /*< 10 CONTINUE >*/ |
| 70 | /* L10: */ |
| 71 | } |
| 72 | /*< RETURN >*/ |
| 73 | return 0; |
| 74 | /*< END >*/ |
| 75 | } /* dlaran_ */ |
| 76 | |
| 77 | #ifdef __cplusplus |
| 78 | } |
| 79 | #endif |