Changeset 3615 in Sophya for trunk/SophyaLib/SysTools
- Timestamp:
- May 1, 2009, 1:34:31 PM (16 years ago)
- Location:
- trunk/SophyaLib/SysTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/Makefile
r3405 r3615 15 15 $(SOPHYAINCP)pexceptions.h \ 16 16 $(SOPHYAINCP)machdefs.h \ 17 $(SOPHYAINCP)srandgen.h 17 $(SOPHYAINCP)srandgen.h \ 18 $(SOPHYAINCP)randinterf.h \ 19 $(SOPHYAINCP)anydataobj.h 18 20 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ cexpre.cc 19 21 … … 35 37 $(SOPHYAINCP)strutilxx.h cexpre.h \ 36 38 $(SOPHYAINCP)pexceptions.h rpneval.h \ 37 $(SOPHYAINCP)srandgen.h zthread.h 39 $(SOPHYAINCP)srandgen.h \ 40 $(SOPHYAINCP)randinterf.h zthread.h 38 41 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ commander.cc 39 42 40 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP) sopnamsp.h \41 $(SOPHYAINCP) machdefs.h ctimer.h43 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)machdefs.h \ 44 $(SOPHYAINCP)sopnamsp.h ctimer.h 42 45 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ ctimer.cc 43 46 … … 70 73 $(SOPHYAINCP)machdefs.h \ 71 74 $(SOPHYAINCP)strutilxx.h \ 72 $(SOPHYAINCP)srandgen.h 75 $(SOPHYAINCP)srandgen.h \ 76 $(SOPHYAINCP)randinterf.h \ 77 $(SOPHYAINCP)anydataobj.h 73 78 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ rpneval.cc 74 79 -
trunk/SophyaLib/SysTools/cexpre.cc
r2804 r3615 220 220 static double _CE_rand01() { return drand01(); } 221 221 static double _CE_randpm1() { return drandpm1(); } 222 static double _CE_gaurand() { return Gau Rnd(0., 1.); }222 static double _CE_gaurand() { return Gaussian(1.,0.); } 223 223 //--------------------------------------------------------- 224 224 CE_FuncExp::CE_FuncExp(string const & func) -
trunk/SophyaLib/SysTools/commander.cc
r3581 r3615 584 584 kw = "autoiniranf"; 585 585 usage = "> Automatic random number generator initialisation\n"; 586 usage += " by Auto _Ini_Ranf(int lp) \n";586 usage += " by AutoInitRand(int lp) \n"; 587 587 usage += " Usage: autoiniranf"; 588 588 RegisterCommand(kw, usage, NULL, grp); … … 1955 1955 } 1956 1956 else if (kw == "autoiniranf") { 1957 Auto _Ini_Ranf(1);1957 AutoInitRand(1); 1958 1958 return(0); 1959 1959 } -
trunk/SophyaLib/SysTools/rpneval.cc
r2913 r3615 238 238 } 239 239 else if (args[k] == "gaurand") { 240 double rnd = Gau Rnd(0., 1.);240 double rnd = Gaussian(1.,0.); 241 241 rpnstack_.push(rnd); 242 242 } -
trunk/SophyaLib/SysTools/smakefile
r3405 r3615 15 15 $(SOPHYAINCP)pexceptions.h \ 16 16 $(SOPHYAINCP)machdefs.h \ 17 $(SOPHYAINCP)srandgen.h 17 $(SOPHYAINCP)srandgen.h \ 18 $(SOPHYAINCP)randinterf.h \ 19 $(SOPHYAINCP)anydataobj.h 18 20 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ cexpre.cc 19 21 … … 35 37 $(SOPHYAINCP)strutilxx.h cexpre.h \ 36 38 $(SOPHYAINCP)pexceptions.h rpneval.h \ 37 $(SOPHYAINCP)srandgen.h zthread.h 39 $(SOPHYAINCP)srandgen.h \ 40 $(SOPHYAINCP)randinterf.h zthread.h 38 41 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ commander.cc 39 42 40 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP) sopnamsp.h \41 $(SOPHYAINCP) machdefs.h ctimer.h43 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)machdefs.h \ 44 $(SOPHYAINCP)sopnamsp.h ctimer.h 42 45 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ ctimer.cc 43 46 … … 70 73 $(SOPHYAINCP)machdefs.h \ 71 74 $(SOPHYAINCP)strutilxx.h \ 72 $(SOPHYAINCP)srandgen.h 75 $(SOPHYAINCP)srandgen.h \ 76 $(SOPHYAINCP)randinterf.h \ 77 $(SOPHYAINCP)anydataobj.h 73 78 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ rpneval.cc 74 79
Note:
See TracChangeset
for help on using the changeset viewer.