>> import numpy.matlib as M >> x = M.asmatrix(['a', 'b', 'c']) >> x == 'a' array([[ True, False, False]], dtype=bool) # <---- I expected a matrix
>> x = M.asmatrix([1, 2, 3]) >> x == 1 matrix([[ True, False, False]], dtype=bool) # <---- This looks good >> >> M.__version__ '1.0.5.dev4445' _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion