Macaulay2 » Documentation
Packages » Macaulay2Doc :: blockMatrixForm
next | previous | forward | backward | up | index | toc

blockMatrixForm -- global flag for block printing

Synopsis

Description

blockMatrixForm is a global flag that specifies whether to display blocks in matrices.

The default value is false.
i1 : M = ZZ^1 ++ ZZ^2 ++ ZZ^3

       6
o1 = ZZ

o1 : ZZ-module, free
i2 : f = random(M,M)

o2 = | 8 3 8 6 6 2 |
     | 1 7 5 8 9 6 |
     | 3 8 2 6 6 9 |
     | 7 8 3 9 2 3 |
     | 8 5 6 3 6 5 |
     | 3 7 3 7 0 6 |

              6       6
o2 : Matrix ZZ  <-- ZZ
i3 : blockMatrixForm = true;
i4 : f

o4 = | 8 | 3 8 | 6 6 2 |
     +---+-----+-------+
     | 1 | 7 5 | 8 9 6 |
     | 3 | 8 2 | 6 6 9 |
     +---+-----+-------+
     | 7 | 8 3 | 9 2 3 |
     | 8 | 5 6 | 3 6 5 |
     | 3 | 7 3 | 7 0 6 |

              6       6
o4 : Matrix ZZ  <-- ZZ

For the programmer

The object blockMatrixForm is a Boolean value.