[Numpy-discussion] Any help from Numpy community?
Birdada Simret
birdada85@gmail....
Wed Mar 13 20:25:28 CDT 2013
*
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
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130314/3c7e949a/attachment.html
More information about the NumPy-Discussion
mailing list