public double weight(int i, int j) {
		if(i < 0 || i >= m)
			throw new RuntimeException("given m=" + m + ", illegal value for i: " + i);
		if(j < 0 || j >= n)
			throw new RuntimeException("given n=" + n + ", illegal value for j: " + j);
		return _weights[i][j];
	}