/* mlp.h - class defining a multilayer mlp and methods to read and write it on a 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 using namespace std; struct mlp{ unsigned numhidlayers; vector dimlayers; vector dimmatrices; vector mlpmatrix; //constructors mlp(unsigned numhidlayers, vector& dimlayers); mlp(unsigned numhidlayers, vector& dimlayers,vector& mlpmatrix); mlp(const mlp& mlpother); ~mlp(); void operator=(const mlp&); void getweightsfromgslvector(gsl_vector* container); void loadtxtweights(const char* filename); void savetxtweights( const char* filename); void init(const unsigned Numhidlayers,const vector& Dimlayers,const vector& Mlpmatrix); };