[petsc-users] symmetric matrix

Eleni Siampli siaeleni at hotmail.com
Thu Aug 9 23:36:01 CDT 2012


Hello all,
Lets say that I have a square Mat A, nxn and is upper triangular. The rest elements are 0.for example: lets say that I have a matrix 3x3 : [5 7 8;0 9 1;0 0 2]What I want is to take the symmetric matrix: [5 7 8;7 9 1;8 1 2]I think that I have to use MatCreateSeqSBAIJ(), but I don't understand exactly how can I use it.What is the block?

Thank you in advance,Helen 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120810/fda3efe9/attachment.html>


More information about the petsc-users mailing list