示例#1
0
 public void set_max(idxdim other)
 {
     if (other.order() != ndim)
     {
         throw new Exception("expected same order in " + id.ToString()
                             + " and " + other);
     }
     for (uint i = 0; i < ndim; i++)
     {
         dims[i] = Math.Max(dims[i], other.dim((int)i));
     }
 }
示例#2
0
 public intg resize(idxdim d)
 {
     return(resize(d.dims[0], d.dims[1], d.dims[2], d.dims[3], d.dims[4], d.dims[5], d.dims[6], d.dims[7]));
 }
示例#3
0
 public idxspec(intg o, idxdim d)
 {
     init_spec(o, d.dims[0], d.dims[1], d.dims[2], d.dims[3], d.dims[4],
               d.dims[5], d.dims[6], d.dims[7], (uint)d.order());
 }