private void loadMatrix(final Matrix matrix,final File file) throws IOException {
  final Iterator<String> lines=Util.readFileLineByLine(file);
  int row=0;
  while (lines.hasNext()) {
    final String line=lines.next();
    final String[] fields=line.split(" ");
    for (int i=0; i < fields.length; i++) {
      matrix.set(row,i,Double.valueOf(fields[i]));
    }
    row++;
  }
}

private void loadMatrix ( final Matrix matrix , final File file ) throws IOException { final Iterator < String > lines = Util . readFileLineByLine ( file ) ; int row = 0 ; while ( lines . hasNext ( ) ) { final String line = lines . next ( ) ; final String [ ] fields = line . split ( " " ) ; for ( int i = 0 ; i < fields . length ; i ++ ) { matrix . set ( row , i , Double . valueOf ( fields [ i ] ) ) ; } row ++ ; } }
loads the neural network weight matrix .
