CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
ranlux_fort.c
Go to the documentation of this file.
1#include <stdlib.h>
2#include <stdio.h>
3#include <math.h>
4#include "ranlxd.h"
5
6int rlxdinit_(int *lux,int *seed)
7{ int lux1,seed1;
8 lux1=*lux;seed1=*seed;
9/* printf("%d\t",lux1);
10 printf("%d\n\n",seed1); */
11 rlxd_init(lux1,seed1);
12}
13
14int ranlxdf_(double vec[],int *lvec)
15{ int lvec1,k;
16 lvec1=*lvec;
17 /* printf("\n%d\n",lvec1); */
18 ranlxd(vec,lvec1);
19 /* for (k=0;k<lvec1;k++)
20 { printf("%d\t",k); printf("%12.9f\n",vec[k]); } */
21}
22
23int rlxdgetf_(int *state)
24{ int k;
25rlxd_get(state);
26/* printf("========\n");
27 for (k=0;k<=rlxd_size();k++)
28 {printf("%d\t",k); printf("%d\n",state[k]);}; */
29}
30
31 int rlxdresetf_(int *state1)
32{ int k;
33rlxd_reset(state1);
34/* printf("========\n");
35 for (k=0;k<=rlxd_size();k++)
36 {printf("%d\t",k); printf("%d\n",state1[k]);}; */
37}
38
39 int rlxd_sizef_(int *n)
40{ int n1;
41 n1=rlxd_size();
42 *n=n1;
43/* printf("n1= "); printf("%d\t",n1); */
44}
const Int_t n
void rlxd_get(int state[])
Definition: ranlxd.c:586
void rlxd_reset(int state[])
Definition: ranlxd.c:610
int rlxd_size(void)
Definition: ranlxd.c:580
void rlxd_init(int level, int seed)
Definition: ranlxd.c:493
void ranlxd(double r[], int n)
Definition: ranlxd.c:563
int n1
Definition: SD0Tag.cxx:54
int rlxd_sizef_(int *n)
Definition: ranlux_fort.c:39
int rlxdresetf_(int *state1)
Definition: ranlux_fort.c:31
int ranlxdf_(double vec[], int *lvec)
Definition: ranlux_fort.c:14
int rlxdinit_(int *lux, int *seed)
Definition: ranlux_fort.c:6
int rlxdgetf_(int *state)
Definition: ranlux_fort.c:23
dble_vec_t vec[12]
Definition: ranlxd.c:372