Jump to content

how to construct a Matrix of matrices element?


Recommended Posts

Hi everyone

 

can anyone please, help me how to construct a matrix whose elements are matrices elements, my main matrix A is constructed of 6 matrices, and I have all the element of these matrices, but the problem I do not know how to write a code to collect all these matrices to form the main matrix A, how the indices look like??

 

any help is appreciated

 

Stephi

Edited by Stephni
Link to comment
Share on other sites

Ahh fortran. The only language I know!

 

It is not clear from your original post exactly what you need. Could you give me some more details? If I knew exactly what your problem was I feel confident I could help. It might be best to give me a hand written overview (pdf) of how matrix A is constructed or comprised from 6 other matrices.

Edited by daniewicz
Link to comment
Share on other sites

thanks for help, mmmh just fell lazy to write down and ........anyway here much more details.......I used a loop to construct each matrix, so I have all the elements of eachmatrix actually I made small error the main matrix is square and should be made of 3 raws and 3 columns, so this means made up of 9 matrices, and I have all of their elements, just how to write a code to write the elements of the main matrix from these elemnts, how its indices look like. the diagonl of the main matrix is constructed from 3 identity matrices, and the upper diagnoal matrices are the zero matrices .......I do not know how to write the indices to construct the main matrix, as I need it to solve a linear system

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...