Jonathan Taylor wrote: > pseudoinverse > > it's the same name matlab uses: > > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pinv.html
Thanks for the explanation. I'm puzzled by the naming choice, however. Standard best practice in writing software is to give understandable names, to improve readability and code maintenance. Obscure abbreviations like "pinv" pretty much went out with the FORTRAN 9-character limit for variable names. It's very unusual to see them in new software nowadays, and it always looks unprofessional to me. I understand that for interactive use, short names are more convenient; but shouldn't they be available aliases to the more general names? Since numpy is primarily a software library, I wouldn't expect it to sacrifice a standard best-practice in order to make things more convenient for interactive use. If the concern is for for matlab compatibility, maybe a synonym module numpy.as_matlab could define all the synonyms, that matlab users could then use? That would make more sense to me than inflicting obscure matlab names on the rest of the user community. Vicki Laidler > > Victoria G. Laidler wrote: > >> Sven Schreiber wrote: >> >> >> >>> Jon Peirce schrieb: >>> >>> >>> >>> >>>> There used to be a function generalized_inverse in the numpy.linalg >>>> module (certainly in 0.9.2). >>>> >>>> In numpy0.9.8 it seems to have been moved to the numpy.linalg.old >>>> subpackage. Does that mean it's being dropped? Did it have to move? >>>> Now i have to add code to my package to try both locations because >>>> my users might have any version... :-( >>>> >>>> >>>> >>>> >>> >>> Maybe I don't understand, but what's wrong with numpy.linalg.pinv? >>> >>> >>> >> >> Er, what's a pinv? It doesn't sound anything like a generalized_inverse. >> >> Vicki Laidler >> >> >> >> ------------------------------------------------------------------------- >> >> 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 >> >> > ------------------------------------------------------------------------- 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