Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: matrix manipulation
Replies: 4   Last Post: Mar 10, 2014 4:42 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bob Hanlon

Posts: 906
Registered: 10/29/11
Re: matrix manipulation
Posted: Mar 10, 2014 4:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Table[Subscript[C, k, j][i], {k, 1, 6}, {j, 1,
6}] /. (Subscript[C, k_, j_] /; k > j) -> Subscript[C, j, k]


SymmetricMatrixQ[%]


True



Bob Hanlon




2014-03-08 2:43 GMT-05:00 <dimanag78@gmail.com>:

> Hello to all.
>
> I have the following 6x6 matrix
>
> Table[Subscript[C, k, j][i], {k, 1, 6}, {j, 1, 6}]
>
> I want this matrix to be symmetric, that is,
> Subscript[C, k, j][i] = Subscript[C, j, k][i] for j != k.
>
> In other words I want the matrix
>
> {{Subscript[C, 1, 1][i], Subscript[C, 1, 2][i], Subscript[C, 1, 3][i],
> Subscript[C, 1, 4][i], Subscript[C, 1, 5][i],
> Subscript[C, 1, 6][i]}, {Subscript[C, 1, 2][i],
> Subscript[C, 2, 2][i], Subscript[C, 2, 3][i], Subscript[C, 2, 4][i],
> Subscript[C, 2, 5][i],
> Subscript[C, 2, 6][i]}, {Subscript[C, 1, 3][i],
> Subscript[C, 2, 3][i], Subscript[C, 3, 3][i], Subscript[C, 3, 4][i],
> Subscript[C, 3, 5][i],
> Subscript[C, 3, 6][i]}, {Subscript[C, 1, 4][i],
> Subscript[C, 2, 4][i], Subscript[C, 3, 4][i], Subscript[C, 4, 4][i],
> Subscript[C, 4, 5][i],
> Subscript[C, 4, 6][i]}, {Subscript[C, 1, 5][i],
> Subscript[C, 2, 5][i], Subscript[C, 3, 5][i], Subscript[C, 4, 5][i],
> Subscript[C, 5, 5][i],
> Subscript[C, 5, 6][i]}, {Subscript[C, 1, 6][i],
> Subscript[C, 2, 6][i], Subscript[C, 3, 6][i], Subscript[C, 4, 6][i],
> Subscript[C, 5, 6][i], Subscript[C, 6, 6][i]}}
>
>
> Thank you very much, in advance, for yor help.
>
>






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.