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

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 10 years ago

phoenix gravatar image

How to build a matrix as thought of as an array of smaller matrices?

Say I am given a data set which looks like [(0,2,A),(0,3,B),(1,2,C),(1,4,D)] where A,B,C,D are matrices all of the same dimension say k. (the data set will always have unique pairs of integers - as in if (1,2,) tuple occurs then (2,1,) tuple will not occur)

Now I want to create a 4x4 matrix say X of dimension 4k thought of as a 4x4 array of k-dimensional matrices. The arrays in B are to be defined as X(0,2)=A,X(2,0)=A1,X(0,3)=B,X(3,0)=B1,X(1,2)=C,X(2,1)=C1,X(1,4)=D,X(4,1)=D1 and all other array positions in X are to be filled in with 0 matrices of dimension k.

  • How can one create such a X on SAGE?

    X is a matrix of matrices and I am not sure how one can define this on SAGE. Like saying "X(0,3) = B" is not going to make any obvious sense to SAGE.

[I showed this above example with just 4 tuples. I want to eventually do it with much larger data sets]

click to hide/show revision 2
No.2 Revision

How to build a matrix as thought of as an array of smaller matrices?

Say I am given a data set which looks like [(0,2,A),(0,3,B),(1,2,C),(1,4,D)] where A,B,C,D are matrices all of the same dimension say k. (the data set will always have unique pairs of integers - as in if (1,2,) tuple occurs then (2,1,) tuple will not occur)

Now I want to create a 4x4 matrix say X of dimension 4k thought of as a 4x4 array of k-dimensional matrices. The arrays in B are to be defined as X(0,2)=A,X(2,0)=A1,X(0,3)=B,X(3,0)=B1,X(1,2)=C,X(2,1)=C1,X(1,4)=D,X(4,1)=D1 and all other array positions in X are to be filled in with 0 matrices of dimension k.

  • How can one create such a X on SAGE?

    X is a matrix of matrices and I am not sure how one can define this on SAGE. Like saying "X(0,3) = B" is not going to make any obvious sense to SAGE.

[I showed this above example with just 4 tuples. I want to eventually do it with much larger data sets]

click to hide/show revision 3
No.3 Revision

How to build a matrix thought of as an array of smaller matrices?

Say I am given a data set which looks like [(0,2,A),(0,3,B),(1,2,C),(1,4,D)] where A,B,C,D are matrices all of the same dimension say k. (the data set will always have unique pairs of integers - as in if (1,2,) tuple occurs then (2,1,) tuple will not occur)

Now I want to create a 4x4 matrix say X of dimension 4k thought of as a 4x4 array of k-dimensional matrices. The arrays in B X are to be defined as X(0,2)=A,X(2,0)=A1,X(0,3)=B,X(3,0)=B1,X(1,2)=C,X(2,1)=C1,X(1,4)=D,X(4,1)=D1 and all other array positions in X are to be filled in with 0 matrices of dimension k.

  • How can one create such a X on SAGE?

    X is a matrix of matrices and I am not sure how one can define this on SAGE. Like saying "X(0,3) = B" is not going to make any obvious sense to SAGE.

[I showed this above example with just 4 tuples. I want to eventually do it with much larger data sets]

click to hide/show revision 4
No.4 Revision

How to build a matrix thought of as an array of smaller matrices?

Say I am given a data set which looks like [(0,2,A),(0,3,B),(1,2,C),(1,4,D)] where A,B,C,D are matrices all of the same dimension say k. (the data set will always have unique pairs of integers - as in if (1,2,) tuple occurs then (2,1,) tuple will not occur)

Now I want to create a 4x4 matrix say X of dimension 4k thought of as a 4x4 array of k-dimensional matrices. The arrays in X are to be defined as X(0,2)=A,X(2,0)=A1,X(0,3)=B,X(3,0)=B1,X(1,2)=C,X(2,1)=C1,X(1,4)=D,X(4,1)=D1 and all other array positions in X are to be filled in with 0 matrices of dimension k.

  • How can one create such a X on SAGE?

    X is a matrix of matrices and I am not sure how one can define this on SAGE. Like saying "X(0,3) = B" is not going to make any obvious sense to SAGE. I necessarily need X to be a matrix so that i can later say calculate its characteristic polynomial.

[I showed this above example with just 4 tuples. I want to eventually do it with much larger data sets]