BSmake_off_map - Generate a mapping from global rows to processor id
- offset
- - the offset of the local processor in the global numbering
- procinfo
- - the usual processor information
- max
- - the number of global rows
For example, processor 0 has 10 rows and an offset of 0, processor 1 has 3 rows
and an offset of 10 and processor 2 has 4 rows and an offset of 13 (there are
3 processors and 17 rows). The offset mapping (see BSsparse.h) would have the
offsets in sorted order with the corresponding processor id. In this way,
given a global row number, one could determine the processor on which it lies.
BSoff_map *BSmake_off_map(int offset, BSprocinfo *procinfo, int max)