[PYTHON MATRIX-SIG] Final (hopefully) alpha release available
tim@lassi.ece.uiuc.edu
tim@lassi.ece.uiuc.edu
Tue, 22 Oct 1996 15:25:59 -0500
"Jim Hugunin" <hugunin@mit.edu> writes:
<...>
>This is also your last chance to make any major design changes to the
>system. If there's something about how NumPy works that you really don't
>like, speak up now while I'm still willing to sacrifice backward
>compatibility. I have a farily extensive set of tools built using this
>stuff (as I'm sure others do) and I don't want to rebuild it all ever again
>;-)
I was thinking about comparison operators (<, ==, etc) today and I had
a question. I understand that there is no good way for <, >, etc to
work on matrices because you have to return and integer value. And,
apparently, there is no way to raise an exception here
either. However, it seems like A == B, and A != B are perfectly valid
matrix expressions that should evaluate to true and false respectively
if A and B are the same shape and have equal values. In other words,
A == B <=> A.shape == B.shape and and.reduce(equal(ravel(A), ravel(B))).
Yes? No?
<...>
--
-tim
+--------------------------------------------------------------------+
| Tim Hochberg Ultrahigh Speed Digital Electronics Lab |
| tim@lassi.ece.uiuc.edu University of Illinois |
| http://dogbert.ece.uiuc.edu/~tim (217) 333-6014 |
+--------------------------------------------------------------------+
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================