My head is about to explode.

I have an M by N array of floats. Associated with the columns are 
character labels
['a','b','b','c','d','e','e','e']  note: already sorted so duplicates 
are contiguous

I want to replace the 2 'b' columns with the sum of the 2 columns. 
Similarly, replace the 3 'e' columns with the sum of the 3 'e' columns.

The resulting array still has M rows but less than N columns. Anyone? 
Could be any harder than Sudoku.

Mathew


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to