for (int i = 0; ret && i < dims_.length; ++i) { Range r = dims_[i]; if (!r.contains(p[i])) ret = false; }
for (int i = 0; i < r_c.rank && ret; ++i) ret = r_c.dims_[i].contains(dims_[i]);
    public boolean contains(int[] p) {        assert p.length == dims_.length;        boolean ret = true;        for (int i = 0; ret && i < dims_.length; ++i) {            Range r = dims_[i];            if (!r.contains(p[i]))                ret = false;        }        return ret;    }