/* prepareautoencoder.cpp - load the coeficients from rbm vislinear and rbm logistic and organize them as the four matrices of an autoencoder and save them on the (right) file Copyright (C) 2010 Rui Rodrigues This software is released under the terms of the GNU General Public License (http://www.gnu.org/copyleft/gpl.html). */ #include #include #include #include #include using namespace std; #include "netdimsandfilenames.h" #include #include void checkfstream(ofstream& file_io,const char* filename); //in checkfstream.cpp void checkfstream(ifstream& file_io,const char* filename); //in checkfstream.cpp void read_datafile(ifstream&in,netdimsandfilenames& A); //in netdimsandfilenames.cpp void writegslmatriz(const char* filename,gsl_matrix*m); void readgslmatriz(const char* filename,gsl_matrix*&m); void readgslvectorasmatriz(const char* filename,gsl_vector*v); void readgslvector(const char* filename,gsl_vector*m); //in iogslvectormatrix.cpp int main(int argc, char ** argv){ try{ if(argc<3){ cout<<" must be called with arguments signal1 and folder name !"<