The target of f should be a direct sum, and the result is obtained by composition with the projection onto the sum of the components numbered i, j, k. Free modules are regarded as direct sums.
i1 : f = map(ZZ^2 ++ ZZ^2, ZZ^2, {{1,2},{3,4},{5,6},{7,8}}) |
i2 : f^[0] |
i3 : f^[1] |
i4 : f^[1,0] |
See also submatrix, Module ^ Array, and Matrix _ Array.