#include <stdio.h>
#include <time.h>
#include <limits.h>
#include <iostream.h>
Go to the source code of this file.
Classes | |
class | MTRand |
Functions | |
ostream & | operator<< (ostream &os, const MTRand &mtrand) |
istream & | operator>> (istream &is, MTRand &mtrand) |
ostream& operator<< | ( | ostream & | os, | |
const MTRand & | mtrand | |||
) | [inline] |
Definition at line 271 of file MersenneTwister.h.
00272 { 00273 register const MTRand::uint32 *s = mtrand.state; 00274 register int i = mtrand.N; 00275 for( ; i--; os << *s++ << "\t" ) {} 00276 return os << mtrand.left; 00277 }
istream& operator>> | ( | istream & | is, | |
MTRand & | mtrand | |||
) | [inline] |
Definition at line 280 of file MersenneTwister.h.
00281 { 00282 register MTRand::uint32 *s = mtrand.state; 00283 register int i = mtrand.N; 00284 for( ; i--; is >> *s++ ) {} 00285 is >> mtrand.left; 00286 mtrand.pNext = &mtrand.state[mtrand.N-mtrand.left]; 00287 return is; 00288 }