On 04/10/2012 01:55 PM, Jed Brown wrote: > On Tue, Apr 10, 2012 at 04:27, Umut Tabak <u.tabak at tudelft.nl > <mailto:u.tabak at tudelft.nl>> wrote: > > I first had a look at the MATLAB routines to read and write the > matrices as examples and MatLoad function manual. I got the idea > however I have a question regarding the write operation for dense > matrices, in MATLAB code, it is given as > > [m,n] = size(A); > write(fd,[1211214,m*n],'int32'); > write(fd,A,'double'); > > > I suggest just using Dear Jed,
I looked at the MATLAB codes as an example, I should interface my matrices which are in the C++ code(they are MTL4 compressed or dense matrices), so they are not in MATLAB. However, I guess I should use the format given on MatLoad page whether the matrices are sparse or dense. I wrote a simple test case which writes the matrix in binary format, which in this case a sparse matrix, now I guess I can use the same routine to write a dense matrix as far as I could understand from MatLoad(There is no separate specification for a dense matrix, right?). Best, U. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120410/7d65aa19/attachment-0001.htm>
