[Numpy-discussion] matrix multiply

Alan G Isaac aisaac@american....
Sun Apr 6 11:25:53 CDT 2008


On Sun, 6 Apr 2008, Stéfan van der Walt apparently wrote:
> I'd be glad if you would review the changeset and comment. 

Just checking:
it's important to me that this won't change
the behavior of boolean matrices, but I don't
see a test for this.  E.g., ::

    >>> import numpy as N
    >>> A = N.mat('1 0;1 1',dtype='bool')
    >>> A**2
    matrix([[ True, False],
            [ True,  True]], dtype=bool)

Cheers,
Alan Isaac





More information about the Numpy-discussion mailing list