Stephni Posted November 6, 2009 Report Share Posted November 6, 2009 (edited) 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 November 6, 2009 by Stephni Quote Link to comment Share on other sites More sharing options...
daniewicz Posted November 7, 2009 Report Share Posted November 7, 2009 You need to tell us what computer language you are interested in using? C++? fortran? Quote Link to comment Share on other sites More sharing options...
Stephni Posted November 7, 2009 Author Report Share Posted November 7, 2009 I am using Fortran77 Quote Link to comment Share on other sites More sharing options...
daniewicz Posted November 8, 2009 Report Share Posted November 8, 2009 (edited) 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 November 8, 2009 by daniewicz Quote Link to comment Share on other sites More sharing options...
Stephni Posted November 8, 2009 Author Report Share Posted November 8, 2009 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 Quote Link to comment Share on other sites More sharing options...
neddie Posted November 8, 2009 Report Share Posted November 8, 2009 And each of the elements in the "main" matrix is a 3x3 matrix too? Looks to me like you just have a 9x9 big matrix then, with lots of zeroes in it! Quote Link to comment Share on other sites More sharing options...
Stephni Posted November 9, 2009 Author Report Share Posted November 9, 2009 And each of the elements in the "main" matrix is a 3x3 matrix too? yes Looks to me like you just have a 9x9 big matrix then, with lots of zeroes in it! yes, it is sparse matrix Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.