1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-17 14:57:05 +01:00

simplification of IO interface

This commit is contained in:
2014-02-20 23:52:45 +00:00
parent 9ce04cd7d6
commit 157fda5445
15 changed files with 870 additions and 67 deletions

View File

@ -1,5 +1,5 @@
#include <iostream>
#include <latan/Io.hpp>
#include <latan/AsciiFile.hpp>
#include <latan/Mat.hpp>
#include <latan/Math.hpp>

View File

@ -1,5 +1,5 @@
#include <iostream>
#include <latan/Io.hpp>
#include <latan/AsciiFile.hpp>
#include <latan/RandGen.hpp>
using namespace std;
@ -11,7 +11,7 @@ const string stateFileName = "exRand.seed";
int main(void)
{
RandGen::State state;
RandGenState state;
RandGen gen[2];
AsciiFile stateFile(stateFileName, File::Mode::write|File::Mode::read);
@ -31,7 +31,7 @@ int main(void)
}
cout << "-- setting up another generator from '" << stateFileName << "'..."
<< endl;
gen[1].setState(stateFile.read<RandGen::State>("exRand"));
gen[1].setState(stateFile.read<RandGenState>("exRand"));
cout << "-- generating a " << seqLength << " steps random sequence..."
<< endl;
for (int i = 0; i < seqLength; ++i)