Pyxaid2
 All Classes
io.h
1 /***********************************************************
2  * Copyright (C) 2013 Alexey V. Akimov
3  * This file is distributed under the terms of the
4  * GNU General Public License as published by the
5  * Free Software Foundation; either version 3 of the
6  * License, or (at your option) any later version.
7  * http://www.gnu.org/copyleft/gpl.txt
8 ***********************************************************/
9 
10 #ifndef IO_H
11 #define IO_H
12 
13 #include <fstream>
14 #include <iostream>
15 #include <iomanip>
16 #include <sstream>
17 #include <string>
18 #include <vector>
19 
20 using namespace std;
21 
22 int read_file(std::string filename,int verbose,vector<std::string>& A);
23 
24 void file2matrix(std::string filename,vector< vector<double> >& m);
25 void file2matrix(std::string filename,vector< vector<double> >& m,double scl);
26 void file2matrix(std::string filename,vector< vector<int> >& m);
27 
28 void show_2D(vector< vector<double> >& in);
29 
30 
31 #endif // IO_H