Re: How to construct symmetric matrix from just a one
- To: mathgroup at smc.vnet.net
- Subject: [mg110384] Re: How to construct symmetric matrix from just a one
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Wed, 16 Jun 2010 05:38:02 -0400 (EDT)
Hi, what about m = {{1, 0, 0, 0}, {2, 3, 0, 0}, {4, 9, 5, 0}, {2, 2, 3, 4}}; m + Transpose[LowerTriangularize[m, -1]] // MatrixForm ? Cheers Patrick On Tue, 2010-06-15 at 02:29 -0400, dragec wrote: > please help me with simple to apply function that will construct > symmetric matrix from given just a half matrix with diagonal. > Eg: > > From: > 1 0 0 0 > 2 3 0 0 > 4 9 5 0 > 2 2 3 4 > > To give: > > 1 2 4 2 > 2 3 9 2 > 4 9 5 3 > 2 2 3 4 >