Changeset 680 for trunk/yat/random


Ignore:
Timestamp:
Oct 11, 2006, 7:49:03 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #153. Introduced yat namespace. Removed alignment namespace. Clean up of code.

Location:
trunk/yat/random
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/random/random.cc

    r675 r680  
    2222*/
    2323
    24 #include "yat/random/random.h"
     24#include "random.h"
    2525#include "yat/statistics/Histogram.h"
    2626
     
    2828#include <iostream>
    2929
    30 
    3130namespace theplu {
     31namespace yat {
    3232namespace random {
    33 
    3433
    3534  RNG* RNG::instance_ = NULL;
     
    4342
    4443
    45 
    4644  RNG::~RNG(void)
    4745  {
     
    5048    delete instance_;
    5149  }
    52 
    5350
    5451 
     
    7067
    7168
    72 
    7369  int RNG::set_state(const RNG_state& state)
    7470  {
    7571    return gsl_rng_memcpy(rng_, state.rng());
    7672  }
    77 
    7873
    7974
     
    8479 
    8580
    86 
    8781  RNG_state::~RNG_state(void)
    8882  {
     
    9084    rng_=NULL;
    9185  }
    92 
    9386
    9487
     
    10396
    10497
    105 
    10698  DiscreteGeneral::~DiscreteGeneral(void)
    10799  {
     
    111103  }
    112104
    113 
    114 }} // of namespace random and namespace theplu
     105}}} // of namespace random, yat, and theplu
  • trunk/yat/random/random.h

    r675 r680  
    1 #ifndef _theplu_random_
    2 #define _theplu_random_
     1#ifndef _theplu_yat_random_
     2#define _theplu_yat_random_
    33
    44// $Id$
     
    3333
    3434namespace theplu {
     35namespace yat {
    3536namespace random {
    3637
     
    545546  };
    546547
    547 
    548 }} // of namespace random and namespace theplu
     548}}} // of namespace random, yat, and theplu
    549549
    550550#endif
Note: See TracChangeset for help on using the changeset viewer.