next up previous contents
Next: struct DAD Up: struct Map Previous: Constructors and destructors

Methods

ker()
An inquiry function returning the kernel dimension map. This is a dimension map associated with the kernel of the parent range. Undefined for dimension maps with level 0 parent ranges.

Equivalent to

  Map ker() const {
    return Map(range.ker(), range.shell().volume() * stride) ;
  }

shell()
An inquiry function returning the shell dimension map. This is a dimension map associated with the shell of the parent range. Undefined for dimension maps with level 0 parent ranges.

Equivalent to

  Map shell() const {
    return Map(range.shell(), stride) ;
  }

str()
An inquiry function returning the stride used in creation of this dimension map. To avoid confusion, note well that this is a memory stride, and this concept is completely unrelated to the alignment stride, returned by the str member of Range.

offset(const Location& i)
Returns the offset in local array segment produced by location i.

Equivalent to

  int offset(const Location& i) const {
    return stride * range.offset(i) ;
  }

disp(const int sub)
Returns the offset in local array segment produced by shell subscript sub.

Equivalent to

  int disp(const int sub) const {
    return stride * range.disp(sub) ;
  }

step(const int sub_stp)
The difference in the value of offset--the local segment offset--between two points in the same block of the range differing in shell subscript by an amount sub_stp.

Equivalent to

  int step(const int sub_stp) const {
    return stride * range.step(sub_stp) ;
  }



Guansong Zhang
Fri Oct 9 12:29:23 EDT 1998