Ask Your Question

Can I use the block_matrix command to create arbitrary sizes of block matrix arrays?

asked 2015-05-09 13:40:56 -0500

phoenix gravatar image

Like say I want to create a $4k \times 4k$ size matrix by putting together certain $4\times 4$ matrices into a $k \times k$ array.

  • Can the "block_matrix" command help me create such a $4k \times 4k$ array of 0s called $A$ ? (such later I can say something like $A[a,b] = X$ where $0 \leq a,b \leq k$ and $X$ is some $4\times 4$ matrix and that will assign the matrix $X$ at the $(a,b)$ array position)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-09 14:19:30 -0500

calc314 gravatar image

Please read for some details.

I think you will need to specify the submatrices first and then build the block matrix. Of course, you might be able to write your own code to do exactly what you are suggesting.

edit flag offensive delete link more


Thats a very generic description. Is there something specific which helps?

phoenix gravatar imagephoenix ( 2015-05-09 16:42:06 -0500 )edit

Some basic things about matrices don't seem to work, like, Z = matrix([[1,0],[2,3]]) Z.charpoly(y)

phoenix gravatar imagephoenix ( 2015-05-09 18:23:31 -0500 )edit

Those commands are working well for me. But, you must begin by declaring y to be a variable using the command var('y').

calc314 gravatar imagecalc314 ( 2015-05-10 13:26:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-05-09 13:40:56 -0500

Seen: 248 times

Last updated: May 09 '15