public static boolean vectorCompare(double[] v, double[] w) {
		if (v.length != w.length)
			return false;
		for (int i = 0; i < v.length; i++)
			if (Math.abs(v[i] - w[i]) > eps)
				return false;

		return true;
	}