CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
ranlux_fort.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "ranlxd.h"

Go to the source code of this file.

Functions

int rlxdinit_ (int *lux, int *seed)
 
int ranlxdf_ (double vec[], int *lvec)
 
int rlxdgetf_ (int *state)
 
int rlxdresetf_ (int *state1)
 
int rlxd_sizef_ (int *n)
 

Function Documentation

◆ ranlxdf_()

int ranlxdf_ ( double  vec[],
int *  lvec 
)

Definition at line 14 of file ranlux_fort.c.

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}
void ranlxd(double r[], int n)
Definition: ranlxd.c:563
dble_vec_t vec[12]
Definition: ranlxd.c:372

◆ rlxd_sizef_()

int rlxd_sizef_ ( int *  n)

Definition at line 39 of file ranlux_fort.c.

40{ int n1;
41 n1=rlxd_size();
42 *n=n1;
43/* printf("n1= "); printf("%d\t",n1); */
44}
const Int_t n
int rlxd_size(void)
Definition: ranlxd.c:580
int n1
Definition: SD0Tag.cxx:54

◆ rlxdgetf_()

int rlxdgetf_ ( int *  state)

Definition at line 23 of file ranlux_fort.c.

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}
void rlxd_get(int state[])
Definition: ranlxd.c:586

◆ rlxdinit_()

int rlxdinit_ ( int *  lux,
int *  seed 
)

Definition at line 6 of file ranlux_fort.c.

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}
void rlxd_init(int level, int seed)
Definition: ranlxd.c:493

◆ rlxdresetf_()

int rlxdresetf_ ( int *  state1)

Definition at line 31 of file ranlux_fort.c.

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}
void rlxd_reset(int state[])
Definition: ranlxd.c:610