linalg(deprecated)
blockmatrix
create a block matrix
Calling Sequence
Parameters
Description
Examples
blockmatrix(m, n, L)
m, n
-
block dimensions of the matrix
L
list consisting of m*n elements, each of which is a matrix or vector
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.
with⁡linalg:
A≔matrix⁡3,3,i,j↦abs⁡i−j
A≔012101210
B≔matrix⁡3,3,i,j↦abs⁡i−j2
B≔014101410
Z≔matrix⁡3,3,0
Z≔000000000
blockmatrix⁡2,4,A,B,Z,A,B,Z,A,B
012014000012101101000101210410000210014000012014101000101101410000210410
See Also
LinearAlgebra
Download Help Document