| 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: , |
|