LEC_rng.h

00001 /*  _________________________________________________________________________
00002  *
00003  *  UTILIB: A utility library for developing portable C++ codes.
00004  *  Copyright (c) 2001, Sandia National Laboratories.
00005  *  This software is distributed under the GNU Lesser General Public License.
00006  *  For more information, see the README file in the top UTILIB directory.
00007  *  _________________________________________________________________________
00008  */
00009 
00010 /*
00011  * LEC_rng.h
00012  *
00013  * Provide headers and externs for the routines in RANLIB.C
00014  */
00015 
00016 #ifndef __LEC_rng_h
00017 #define __LEC_rng_h
00018 
00019 #include "real.h"
00020 
00021 #if defined(__cplusplus)
00022 extern "C" {
00023 #endif
00024 
00025 extern long mltmod(long a,long s,long m);
00026 extern void advnst(long k);
00027 extern void phrtsd(char* phrase,long* seed1,long* seed2);
00028 
00029 extern REAL LEC_runif(void);
00030 
00031 extern void setall(long iseed1,long iseed2);
00032 extern void setant(long qvalue);
00033 extern void setgmn(REAL *meanv,REAL *covm,long p,REAL *parm);
00034 extern void setsd(long iseed1,long iseed2);
00035 extern void getsd(long *iseed1,long *iseed2);
00036 
00037 extern void initgn(long isdtyp);
00038 extern void gscgn(long getset,long *g);
00039 
00040 #ifdef __cplusplus
00041 };
00042 #endif
00043 
00044 #endif