[SciPy-dev] feedback on scipy.sparse
Nathan Bell
wnbell at gmail.com
Thu Dec 13 14:17:22 EST 2007
On Dec 13, 2007 3:21 AM, Robert Cimrman <cimrman3 at ntc.zcu.cz> wrote:
> > 1) Should we prefer 'dims' over 'shape' or vice versa? IMO 'shape'
> > is arguably more natural since all the types have a .shape attribute
>
> Yes, please.
I'll deprecate 'dims' then.
> Concerning the Stefan's idea of static methods for spidentity etc., we
> could use only one method for all of them, e.g.
>
> class spmatrix:
>
> def special( name, format = ... ):
> if name = 'identity':
> return spidentity(n,format=format)
> ...
>
> to prevent cluttering od the class you mentioned.
Good idea, I hadn't considered that option.
--
Nathan Bell wnbell at gmail.com
More information about the SciPy-Dev
mailing list