linalg(deprecated)/blockmatrix - Help

linalg(deprecated)

 blockmatrix
 create a block matrix

 Calling Sequence blockmatrix(m, n, L)

Parameters

 m, n - block dimensions of the matrix L - list consisting of m*n elements, each of which is a matrix or vector

Description

 • Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The call blockmatrix(m, n, [B11,..., B1n,..., Bm1,..., Bmn]) creates an m by n block matrix which is filled in using row major order.
 • The command with(linalg,blockmatrix) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(3,3,\left(i,j\right)↦\mathrm{abs}\left(i-j\right)\right)$
 ${A}{≔}\left[\begin{array}{ccc}{0}& {1}& {2}\\ {1}& {0}& {1}\\ {2}& {1}& {0}\end{array}\right]$ (1)
 > $B≔\mathrm{matrix}\left(3,3,\left(i,j\right)↦{\mathrm{abs}\left(i-j\right)}^{2}\right)$
 ${B}{≔}\left[\begin{array}{ccc}{0}& {1}& {4}\\ {1}& {0}& {1}\\ {4}& {1}& {0}\end{array}\right]$ (2)
 > $Z≔\mathrm{matrix}\left(3,3,0\right)$
 ${Z}{≔}\left[\begin{array}{ccc}{0}& {0}& {0}\\ {0}& {0}& {0}\\ {0}& {0}& {0}\end{array}\right]$ (3)
 > $\mathrm{blockmatrix}\left(2,4,\left[A,B,Z,A,B,Z,A,B\right]\right)$
 $\left[\begin{array}{cccccccccccc}{0}& {1}& {2}& {0}& {1}& {4}& {0}& {0}& {0}& {0}& {1}& {2}\\ {1}& {0}& {1}& {1}& {0}& {1}& {0}& {0}& {0}& {1}& {0}& {1}\\ {2}& {1}& {0}& {4}& {1}& {0}& {0}& {0}& {0}& {2}& {1}& {0}\\ {0}& {1}& {4}& {0}& {0}& {0}& {0}& {1}& {2}& {0}& {1}& {4}\\ {1}& {0}& {1}& {0}& {0}& {0}& {1}& {0}& {1}& {1}& {0}& {1}\\ {4}& {1}& {0}& {0}& {0}& {0}& {2}& {1}& {0}& {4}& {1}& {0}\end{array}\right]$ (4)