How about having having two folders, dense and sparse, in the matrices folder. The dense folder contains densematrix.py and linalg.py. densematrix.py contains the class DenseMatrix (the current Matrix class, or should the name remain the same ? ). The sparse folder has dokmatrix.py, linalg.py. dokmatrix.py contains the class DOKMatrix (currently SMatrix). More sparse reprsentations would be added here later. linalg.py contains routines for factorization, solves for dense and sparse respectively. This is much like what scipy has. If we choose to remain the current Matrix class to DenseMatrix, we can have a file matrix.py in sympy/matrices/ which has a Matrix class which serves as a wrapper over DenseMatrix, and the various SparseMatrices.
As to the class hierarchy, I intend to keep sparse and dense separate. There are only some printing and other utility functions that they could share. So, some more abstract claasses like _printable_matrix, would also be there. Sent on my BlackBerry® from Vodafone -----Original Message----- From: Brian Granger <elliso...@gmail.com> Sender: sympy@googlegroups.com Date: Tue, 31 May 2011 20:54:14 To: <sympy@googlegroups.com> Reply-To: sympy@googlegroups.com Subject: Re: [sympy] Reorganise the package structure +1 on linalg as that follows the convention of numpy/scipy. On Fri, May 27, 2011 at 6:04 PM, Andy Ray Terrel <andy.ter...@gmail.com> wrote: > I'm +1 for linalg over matrix/matrices. Having a Matrix file and > putting all the linear algebra routines in it violates modularity and > extensibility. Also it makes the library unclear as to where other > linear algebraic operators actually fit. While the name "linear" > might not be the best fit for all linear algebraic operations, it is > the mathematical tradition. > > > -- Andy > > On Thu, May 26, 2011 at 6:09 PM, Ondrej Certik <ond...@certik.cz> wrote: >> On Thu, May 26, 2011 at 2:49 PM, Brian Granger <elliso...@gmail.com> wrote: >>> +1 on manipulate >>> +1 on matrices or matrix, -1 on linear instead of matrx/matrices >> >> The same here. >> >> Ondrej >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To post to this group, send email to sympy@googlegroups.com. >> To unsubscribe from this group, send email to >> sympy+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/sympy?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgran...@calpoly.edu and elliso...@gmail.com -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.