[Numpy-tickets] [NumPy] #560: asfarray applied to a matrix returns a matrix instead of an array

NumPy numpy-tickets@scipy....
Wed Aug 1 13:25:47 CDT 2007


#560: asfarray applied to a matrix returns a matrix instead of an array
------------------------+---------------------------------------------------
 Reporter:  nils        |       Owner:  somebody     
     Type:  defect      |      Status:  new          
 Priority:  high        |   Milestone:  1.0.4 Release
Component:  numpy.core  |     Version:  devel        
 Severity:  normal      |    Keywords:               
------------------------+---------------------------------------------------
 {{{
 >>> from numpy import *
 >>> asfarray(matrix([[0.3]]))
 matrix([[ 0.3]])
 >>> array(matrix([[0.3]]))
 array([[ 0.3]])
 >>> numpy.__version__
 '1.0.4.dev3937'
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/560>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list