[Numpy-discussion] suggestions for Matrix-related changes

David Huard david.huard at gmail.com
Tue Jul 11 21:42:23 CDT 2006


2006/7/11, JJ <josh8912 at yahoo.com>:
>
> 1) is it possible to get the function unique() to work with matrices,
> perhaps
> with a unique_rows() function to work with matrices of more than one
> column?


The problem is that applying unique to different rows will return vectors
with different lengths. So you could not return an array, much less a
matrix. You'd have to return a list of arrays or 1D matrices.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060711/bce5775a/attachment.html 


More information about the Numpy-discussion mailing list