<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 04/10/2012 01:55 PM, Jed Brown wrote:
<blockquote
cite="mid:CAM9tzSkxUzygZRJgqvqM1ANK9+gTnojEmkLD-yftFFTadkGt1Q@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="gmail_quote">On Tue, Apr 10, 2012 at 04:27, Umut Tabak
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:u.tabak@tudelft.nl">u.tabak@tudelft.nl</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1k7">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<br>
<br>
[m,n] = size(A);<br>
write(fd,[1211214,m*n],'int32');<br>
write(fd,A,'double');<br>
</div>
</blockquote>
<div><br>
</div>
<div>I suggest just using</div>
</div>
</blockquote>
Dear Jed,<br>
<br>
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.<br>
<br>
However, I guess I should use the format given on MatLoad page
whether the matrices are sparse or dense.<br>
<br>
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?).<br>
<br>
Best,<br>
U.<br>
</body>
</html>