On Thu, Aug 9, 2012 at 11:36 PM, Eleni Siampli <span dir="ltr"><<a href="mailto:siaeleni@hotmail.com" target="_blank">siaeleni@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Hello all,<div><br></div><div>Lets say that I have a square Mat A, nxn and is upper triangular. The rest elements are 0.</div><div>for example: lets say that I have a matrix 3x3 : [5 7 8;0 9 1;0 0 2]</div><div>What I want is to take the symmetric matrix: [5 7 8;7 9 1;8 1 2]</div>
<div>I think that I have to use MatCreateSeqSBAIJ(), but I don't understand exactly how can I use it.</div><div>What is the block?</div></div></div></blockquote><div><br></div><div>Set blocksize to 1 and you should have what you want.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div>Thank you in advance,</div><div>Helen</div> </div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>