#ifndef _FFNet_Matrix_h_
#define _FFNet_Matrix_h_
/* David Weenink, 6/2/95 */

#include "Matrix.h"
#include "FFNet.h"

/* The Matrix organization is as follows:									*/
/*																			*/
/* nx = nUnitsInLayer[layer]												*/
/* ny = nUnitsInLayer[layer-1]+1											*/
/* xmin = 1 xmax = nx														*/
/* ymin = 1 ymax = ny														*/
/* dx = dy = 1																*/
/* x1 = y1 = 1																*/
/*																			*/
/* NOTICE:																	*/
/* A conversion FFNet_weightsToMatrix followed by FFNet_weightsFromMatrix	*/
/* may result in a loss of precision since it involves a conversion from	*/
/* double -> float -> double.												*/

Matrix FFNet_weightsToMatrix (FFNet me, long layer, int deltaWeights);
/* (delta) weights connected to layer into Matrix */

FFNet FFNet_weightsFromMatrix (FFNet me, Matrix matrix, long layer);
/* creates a new FFNet in which the weights that connect to layer are		*/
/* replaced by the weights in the matrix									*/

#endif /* _FFNet_Matrix_h_ */
