Changeset 680 for trunk/yat/random
- Timestamp:
- Oct 11, 2006, 7:49:03 PM (16 years ago)
- Location:
- trunk/yat/random
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/random/random.cc
r675 r680 22 22 */ 23 23 24 #include " yat/random/random.h"24 #include "random.h" 25 25 #include "yat/statistics/Histogram.h" 26 26 … … 28 28 #include <iostream> 29 29 30 31 30 namespace theplu { 31 namespace yat { 32 32 namespace random { 33 34 33 35 34 RNG* RNG::instance_ = NULL; … … 43 42 44 43 45 46 44 RNG::~RNG(void) 47 45 { … … 50 48 delete instance_; 51 49 } 52 53 50 54 51 … … 70 67 71 68 72 73 69 int RNG::set_state(const RNG_state& state) 74 70 { 75 71 return gsl_rng_memcpy(rng_, state.rng()); 76 72 } 77 78 73 79 74 … … 84 79 85 80 86 87 81 RNG_state::~RNG_state(void) 88 82 { … … 90 84 rng_=NULL; 91 85 } 92 93 86 94 87 … … 103 96 104 97 105 106 98 DiscreteGeneral::~DiscreteGeneral(void) 107 99 { … … 111 103 } 112 104 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_ 3 3 4 4 // $Id$ … … 33 33 34 34 namespace theplu { 35 namespace yat { 35 36 namespace random { 36 37 … … 545 546 }; 546 547 547 548 }} // of namespace random and namespace theplu 548 }}} // of namespace random, yat, and theplu 549 549 550 550 #endif
Note: See TracChangeset
for help on using the changeset viewer.