1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-18 15:27:05 +01:00

first experimental IO that read matrices from a bison/flex parser

This commit is contained in:
2013-05-21 18:02:42 +01:00
parent 30c8c2e205
commit 86d9607224
22 changed files with 763 additions and 55 deletions

View File

@ -1,9 +1,25 @@
#include <iostream>
#include <latan/Global.h>
#include <latan/IO.hpp>
using namespace std;
using namespace Latan;
int main(void)
{
ASCIIFile F;
DMat A,B;
F.Open("foo.boot",FileMode::Read);
A = F.Read<DMat>("bla");
B = F.Read<DMat>("bli");
cout << A << endl;
cout << B << endl;
cout << A*B << endl;
return EXIT_SUCCESS;
}
/*
int main(void)
{
DMat m(2,2);
@ -18,3 +34,4 @@ int main(void)
v(1) = v(0) - 1;
cout << "Here is the vector v:\n" << v << endl;
}
*/