Hi all,
The documentation of trace says it returns the same type as the array. Yet:
>>> trace(eye(2, dtype=int8)).dtype
dtype('int32')
For float types this promotion does not occur
>>> trace(eye(2, dtype=float32)).dtype
dtype('float32')
Trace operates the same way as sum. What should be the case here? And if
type promotion is the default, shouldn't float32 be promoted to double?
Chuck
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion