MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Creating a symmetric matrix


Hi,

ll = PadRight[#, 4, 0] & /@ Table[a[j, i], {j, 1, 4}, {i, 1, j}];
ll = ll + MapIndexed[If[Equal @@ #2, 0, #1] & , Transpose[ll], {2}]

??

Regards
  Jens

Mark Coleman wrote:
> 
> Greetings,
> 
> How can I efficiently build a symmetric matrix from an upper triangular
> one, i.e., extract the upper triangular elements and insert them into
> the lower triangle in such a way as to make the resulting square matrix
> symmetric?
> 
> Thanks,
> 
> Mark


  • Prev by Date: FindRoot and Compile
  • Next by Date: Re: Creating a symmetric matrix
  • Previous by thread: Re: Creating a symmetric matrix
  • Next by thread: Re: Creating a symmetric matrix