[Numpy-tickets] [NumPy] #460: better integration of matrices using properties

NumPy numpy-tickets@scipy....
Sun Mar 4 09:08:46 CST 2007

#460: better integration of matrices using properties
 Reporter:  batripler    |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  numpy.core   |     Version:  devel   
 Severity:  normal       |    Keywords:          
 I think that adding the following properties on arrays/matrices would
 greatly simplify code:
 - ndarray.M to return asmatrix(self)[[BR]]
 - ndarray.A to return self[[BR]]
 - matrix.M to return self[[BR]]

 Thus, typing foo.M or foo.A will always work. At the very least, adding
 merely the first property would be a great help to shorten code, and
 improve clarity.

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

More information about the Numpy-tickets mailing list