A PartMatrix is a subclass of a SectMatrix.
(These are S4 classes, which are similar to NestMatrix).
A PartMatrix contains a matrix, along with a set of separator lines.
(These lines are included, when the object is formatted).
A SectMatrix is similar, but allows arbitrary rectangular sections, defined by the vmap argument.
A VMap object is a subclass of ObjectArray, that requires one or more two by two integer matrices.
Each two by two matrices defines the indices of the section.
The top row is the start and end indices for the rows, and the bottom row is the start and end indices for the columns.
A VMap can have two or more dimesions.
And a VMap is created by the PartMatrix constructor, which is two dimensional.
The n22 function is a convenience function for constructing a one dimensional VMap.
It takes a integer vector, where the length is a multiple of four.
Each consecutive set of four defines the indices for one section.
Within each set, each value describes the row start, row end, column start and column end, in that order.
Note that PartMatrix objects maybe removed or deprecated, in the future.
Also note, do not to access slots directly.
(But rather use functions within this package).