-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Milestone
Description
Should asarray() allow arbitrary casting between dtypes if you call asarray(x, dtype=dtype)? It isn't really clear in the spec if, e.g., asarray(x, dtype=bool) should be required to work if x is an integer or float array, or asarray(x, dtype=float64) if x is integer, and so on. My feeling is that it definitely should work if dtype is a promotable type from x.dtype, but I don't know if casts that aren't required to promote should also be required to work.