Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
0

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

asked 9 years ago

phoenix gravatar image

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

  • Can the "block_matrix" command help me create such a 4k×4k array of 0s called A ? (such later I can say something like A[a,b]=X where 0a,bk and X is some 4×4 matrix and that will assign the matrix X at the (a,b) array position)
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

calc314 gravatar image

Please read http://www.sagemath.org/doc/reference... 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.

Preview: (hide)
link

Comments

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

phoenix gravatar imagephoenix ( 9 years ago )

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

phoenix gravatar imagephoenix ( 9 years ago )

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 ( 9 years ago )

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

Stats

Asked: 9 years ago

Seen: 681 times

Last updated: May 09 '15