*
Any help from Numpy community
[[ 0. 1.54 0. 0. 0. 1.08
1.08 1.08 ]
[ 1.54 0. 1.08 1.08 1.08 0. 0.
0. ]
[ 0. 1.08 0. 0. 0. 0.
0. 0. ]
[ 0. 1.08 0. 0. 0. 0.
0. 0. ]
[ 0. 1.08 0. 0. 0. 0.
0. 0. ]
[ 1.08 0. 0. 0. 0. 0.
0. 0. ]
[ 1.08 0. 0. 0. 0. 0.
0. 0. ]
[ 1.08 0. 0. 0. 0. 0.
0. 0. ]]
the above is the numpy array matrix. the numbers represents:
C-C: 1.54 and C-H=1.08
So I want to write this form as
C of index i is connected to C of index j
C of index i is connected to H of index j
(C(i),C(j)) # key C(i) and value C(j)
(C(i),H(j)) # key C(i) and value H(j) ; the key C(i) can be repeated to
fulfil as much as the values of H(j)
To summarize, the out put may look like:
C1 is connected to C2
C1 is connected to H1
C1 is connected to H3
C2 is connected to H2 etc....
Any guide is greatly appreciated,
thanks
birda
*
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion