[Scipy-tickets] [SciPy] #278: AttributeError: gettypecode not found

SciPy scipy-tickets at scipy.net
Sun Oct 8 04:09:09 CDT 2006


#278: AttributeError: gettypecode not found
----------------------+-----------------------------------------------------
 Reporter:  nils      |        Owner:  somebody
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:          
Component:  scipy.io  |      Version:          
 Severity:  major     |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by nils):

  * severity:  normal => major

Comment:

 A=A.todense() doesn't work. The imaginary part is missing afterwards.

 {{{
 >>> A
 <2x2 sparse matrix of type '<type 'numpy.float64'>'
         with 3 stored elements in LInked List format>
 >>> print A
   (0, 1)        (0.0659104233585+0.553568212194j)
   (1, 0)        (0.662199732823+0.852946368188j)
   (1, 1)        (0.209971192533+0.154974096269j)
 >>> A = A.todense()
 >>> A
 matrix([[ 0.        ,  0.06591042],
         [ 0.66219973,  0.20997119]])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/278#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list