# HG changeset patch
# User Willem Jan Palenstijn <wjp@usecode.org>
# Date 1263925051 28800
# Node ID 1f759c7fc319e752cfaccaf72b3708f4adacf474
# Parent 33c04bb5aea0255c4fac02782a9974deaf33f1ce
4492: Add extra doctest for nonsquare zero block
diff r 33c04bb5aea0 r 1f759c7fc319 sage/matrix/constructor.py
a

b


996  996  [+] 
997  997  [ 0 0 1 0] 
998  998  [ 0 0 0 1] 
 999  
 1000  A zero entry may represent any square or nonsquare zero matrix:: 
 1001  
 1002  sage: B = matrix(QQ, 1, 1, [ 1 ] ) 
 1003  sage: C = matrix(QQ, 2, 2, [ 2, 3, 4, 5 ] ) 
 1004  sage: block_matrix([B, 0, 0, C]) 
 1005  [10 0] 
 1006  [+] 
 1007  [02 3] 
 1008  [04 5] 
999  1009  
1000  1010  One can specify the number of rows or columns (optional for square 
1001  1011  number of matrices):: 