[Scipy-tickets] [SciPy] #1602: Sparse matrices do not allow a dimension to have length 0

SciPy Trac scipy-tickets@scipy....
Thu Apr 18 22:24:49 CDT 2013


#1602: Sparse matrices do not allow a dimension to have length 0
--------------------------+-------------------------------------------------
 Reporter:  jluttine      |       Owner:  wnbell     
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  Unscheduled
Component:  scipy.sparse  |     Version:  0.10.0     
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by izzycecil):

 So if you look at spmatrix.set_shape, you will find that this is
 specifically forbidden. I'm going to remove it, see if I can break
 anything. If not, I'll submit a patch.

 sparse/base.py - line 73 - 74
 {{{
 if not (shape[0] >= 1 and shape[1] >= 1):
             raise ValueError('invalid shape')
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1602#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