public boolean contains(int[] p) { assert p.length == dims_.length;
public boolean contains(Region r) { assert r.rank() == rank;
    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;    }