[Numpy-discussion] puzzle with boolean dtype

Alan G Isaac alan.isaac@gmail....
Wed Oct 6 17:12:23 CDT 2010


On 10/6/2010 5:52 PM, Charles R Harris wrote:
> What would you want in it's place? For consistancy, a**0 == all_true, a**i == a, i > 0?

Yes.

Alan Isaac

PS Boolean matrix powers are well defined and useful.
I found this oddity by accidentally creating an array instead of a matrix.


More information about the NumPy-Discussion mailing list