[EMAIL PROTECTED] wrote: > Many problems are best solved with irregular array structures. These > are aggregations not having a rectangular shape. To motivate, here's > one example, > > http://lambda-the-ultimate.org/files/HammingNumbersDeclarative.7z > - from http://lambda-the-ultimate.org/node/608#comment-5746 > > Irregularity here changes an O(N^3) solution to O(N). (The file format > is a 7zip archive with a MathReader file inside, readable in Windows or > Unix with free software.) > > These cases also arise in simulations where physical geometry determines > array shape. Here memory consumption is the minimization goal that > makes irregularity desirable. The access function will return NaN or > zero for out-of-bounds requests. There is no need to consume memory > storing NaNs and zeros >
> Please advise how much support numpy/Scipy has for these structures, if > any, including future plans. If support exists, could you kindly supply > a Scipy declaration matching the first example. > SciPy has sparse matrix support (scipy.sparse) with several storage formats You can also construct irregular arrays using arrays of objects or just lists of lists. -Travis ------------------------------------------------------------------------- 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