Changeset 3615 in Sophya for trunk/SophyaLib/SysTools


Ignore:
Timestamp:
May 1, 2009, 1:34:31 PM (16 years ago)
Author:
cmv
Message:

Modifs relatives a l'introduction de RandomGeneratorInterface + delete de srandgen.c, cmv 01/05/2009

Location:
trunk/SophyaLib/SysTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/Makefile

    r3405 r3615  
    1515  $(SOPHYAINCP)pexceptions.h \
    1616  $(SOPHYAINCP)machdefs.h \
    17   $(SOPHYAINCP)srandgen.h
     17  $(SOPHYAINCP)srandgen.h \
     18  $(SOPHYAINCP)randinterf.h \
     19  $(SOPHYAINCP)anydataobj.h
    1820        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  cexpre.cc
    1921 
     
    3537  $(SOPHYAINCP)strutilxx.h cexpre.h \
    3638  $(SOPHYAINCP)pexceptions.h rpneval.h \
    37   $(SOPHYAINCP)srandgen.h zthread.h
     39  $(SOPHYAINCP)srandgen.h \
     40  $(SOPHYAINCP)randinterf.h zthread.h
    3841        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  commander.cc
    3942 
    40 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)sopnamsp.h \
    41   $(SOPHYAINCP)machdefs.h ctimer.h
     43$(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)machdefs.h \
     44  $(SOPHYAINCP)sopnamsp.h ctimer.h
    4245        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  ctimer.cc
    4346 
     
    7073  $(SOPHYAINCP)machdefs.h \
    7174  $(SOPHYAINCP)strutilxx.h \
    72   $(SOPHYAINCP)srandgen.h
     75  $(SOPHYAINCP)srandgen.h \
     76  $(SOPHYAINCP)randinterf.h \
     77  $(SOPHYAINCP)anydataobj.h
    7378        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  rpneval.cc
    7479 
  • trunk/SophyaLib/SysTools/cexpre.cc

    r2804 r3615  
    220220static double _CE_rand01() { return drand01(); }
    221221static double _CE_randpm1() { return drandpm1(); }
    222 static double _CE_gaurand() { return GauRnd(0., 1.); }
     222static double _CE_gaurand() { return Gaussian(1.,0.); }
    223223//---------------------------------------------------------
    224224CE_FuncExp::CE_FuncExp(string const & func)
  • trunk/SophyaLib/SysTools/commander.cc

    r3581 r3615  
    584584kw = "autoiniranf";
    585585usage  = "> Automatic random number generator initialisation\n";
    586 usage += "   by Auto_Ini_Ranf(int lp) \n";
     586usage += "   by AutoInitRand(int lp) \n";
    587587usage += "   Usage: autoiniranf";
    588588RegisterCommand(kw, usage, NULL, grp);
     
    19551955  }
    19561956else if (kw == "autoiniranf") {
    1957   Auto_Ini_Ranf(1);
     1957  AutoInitRand(1);
    19581958  return(0);
    19591959}
  • trunk/SophyaLib/SysTools/rpneval.cc

    r2913 r3615  
    238238    }
    239239    else if (args[k] == "gaurand") {
    240       double rnd = GauRnd(0., 1.);
     240      double rnd = Gaussian(1.,0.);
    241241      rpnstack_.push(rnd);
    242242    }
  • trunk/SophyaLib/SysTools/smakefile

    r3405 r3615  
    1515  $(SOPHYAINCP)pexceptions.h \
    1616  $(SOPHYAINCP)machdefs.h \
    17   $(SOPHYAINCP)srandgen.h
     17  $(SOPHYAINCP)srandgen.h \
     18  $(SOPHYAINCP)randinterf.h \
     19  $(SOPHYAINCP)anydataobj.h
    1820        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  cexpre.cc
    1921 
     
    3537  $(SOPHYAINCP)strutilxx.h cexpre.h \
    3638  $(SOPHYAINCP)pexceptions.h rpneval.h \
    37   $(SOPHYAINCP)srandgen.h zthread.h
     39  $(SOPHYAINCP)srandgen.h \
     40  $(SOPHYAINCP)randinterf.h zthread.h
    3841        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  commander.cc
    3942 
    40 $(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)sopnamsp.h \
    41   $(SOPHYAINCP)machdefs.h ctimer.h
     43$(SOPHYAOBJP)ctimer.o: ctimer.cc $(SOPHYAINCP)machdefs.h \
     44  $(SOPHYAINCP)sopnamsp.h ctimer.h
    4245        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  ctimer.cc
    4346 
     
    7073  $(SOPHYAINCP)machdefs.h \
    7174  $(SOPHYAINCP)strutilxx.h \
    72   $(SOPHYAINCP)srandgen.h
     75  $(SOPHYAINCP)srandgen.h \
     76  $(SOPHYAINCP)randinterf.h \
     77  $(SOPHYAINCP)anydataobj.h
    7378        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  rpneval.cc
    7479 
Note: See TracChangeset for help on using the changeset viewer.