Macaulay2 » Documentation
Packages » Macaulay2Doc » matrices » format and display of matrices in Macaulay2 » blockMatrixForm
next | previous | forward | backward | up | index | toc

# blockMatrixForm -- global flag for block printing

- Usage:
    `blockMatrixForm = x`
- Consequences:
  - changes the display of matrices

## 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

## See also

- compactMatrixForm -- global flag for compact printing

## For the programmer

The object blockMatrixForm is a Boolean value.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_repl.m2:813:0.