3 Oct
2007
3 Oct
'07
9:33 p.m.
Shouldn't x**0 be boolean for a boolean matrix? Cheers, Alan Isaac
import numpy numpy.__version__ '1.0.3.1' x = numpy.mat('1 1;1 0',dtype='bool') x**0 matrix([[ 1., 0.], [ 0., 1.]]) x**1 matrix([[ True, True], [ True, False]], dtype=bool) x**2 matrix([[ True, True], [ True, True]], dtype=bool)
6049
Age (days ago)
6049
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alan G Isaac