|
From: Travis O. <oli...@ie...> - 2006-01-19 00:09:38
|
Sven Schreiber wrote: > Hi, > I've spent a couple of weeks with scipy/numpy and the old-to-new > transition; now that the transition is over (?) but some confusion is > remaining (on my side) I feel the need to ask a basic question about > matlab compatibility in terms of matrix (linear algebra) programming. > > Take "eye" and "identity" for example; given that "eye" supposedly > exists to facilitate transiton from matlab to numpy/scipy (correct?), > I expected eye to be/return a matrix. Historical is the only reason. Numeric always returned an array for eye not a matrix. We could return a matrix without difficulty especially if we put an eye --> identity transition in convertcode.py -Travis |