[Scipy-tickets] [SciPy] #1654: coo.todense() segfaults

SciPy Trac scipy-tickets@scipy....
Wed May 2 22:11:42 CDT 2012


#1654: coo.todense() segfaults
---------------------------+------------------------------------------------
  Reporter:  rlm           |       Owner:  somebody   
      Type:  defect        |      Status:  closed     
  Priority:  normal        |   Milestone:  Unscheduled
 Component:  scipy.sparse  |     Version:  0.10.0     
Resolution:  worksforme    |    Keywords:             
---------------------------+------------------------------------------------
Changes (by stefan):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 With 0.11.0.dev I get a MemoryError instead.

 It looks like the row and column coordinates are within bounds:

 {{{
 np.max(M.row * M.shape[1] + M.col) > np.prod(M.shape)
 }}}

 But the output array would have a prohibitively large memory footprint:
 {{{
 np.dtype(float).itemsize * np.prod(M.shape) / 1024.**3
 }}}

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


More information about the Scipy-tickets mailing list