public void printMatrix(double[][] matrix) {
		for (int i = 0; i < matrix.length; i++) {
			System.out.print("i=" + i + "  (");
			for (int j = 0; j < matrix[i].length; j++) {
				System.out.print("["+matrix[i][j]+"] ");
			}
			System.out.println(")");
		}
	}