Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Find a positive diagonal' topicStudent Support Forum > General > "Find a positive diagonal"

Next Comment >Help | Reply To Topic
Author Comment/Response
Alex
05/20/09 04:59am

Hello

Can mathematica find a positive diagonal in a square matrix? For example:
0 4 3 0
2 0 0 9
0 0 0 1
7 8 6 5

one of positive diagonales is: a12,a21,a34,a43 (the numbers 4,2,1,6).

Question2:
I need the positive diagonal to divide my matrix into permutationsmatrices, for example:
0005
0320
5000
0230 =

2*
(
0001
0010
1000
0100
)

+

3*
0001
0100
1000
0010

I have a double stochastic matrix, so it will always be possible to divide matrix into some permutaionsmatrices (matrices with exactly one "1" in every row and column. the rest is 0).

Can mathematica divide matrices in this way? I can also do it by myself, if Mathematica can find a positive diagonal for me (question1).

Thank you



URL: ,

Subject (listing for 'Find a positive diagonal')
Author Date Posted
Find a positive diagonal Alex 05/20/09 04:59am
Re: Find a positive diagonal Tom 05/26/09 07:07am
Re: Find a positive diagonal yehuda ben-s... 05/31/09 02:18am
Next Comment >Help | Reply To Topic