[SciPy-user] matrix construction
William Griffin
WILLIAM.GRIFFIN at asu.edu
Thu Sep 23 11:29:35 EDT 2004
I'm trying to build an adjacency matrix (52*52) from an imported ASCII list. I want to be able to construct and read the list as two columns [i] [j], and use a count method to obtain the tally cell values for the occurrences and include the count value in the [i,j] cell; or else, bring in the list as three columns [i][j][tallies], and then simply place the [tallies] value in the [i,j] cell. I prefer the former two column approach because it involves one less step. I've made several attempts at generating a general algorithm, but it has not been very successful. I was wondering anyone else had to do this or can point me to any code that might be adapted for this.
Thanks,
Bill Griffin
More information about the SciPy-User
mailing list