MatrixLayer prevLayer = matrixLayers[0];
for(int i =1; i < sourceNetwork.getLayersCount(); i++ ) {
Layer layer = sourceNetwork.getLayerAt(i);
MatrixMlpLayer newBpLayer = new MatrixMlpLayer(layer, prevLayer, new Tanh());
matrixLayers[i] = newBpLayer;
prevLayer = newBpLayer;
}
}