Closed
Description
IIUC the standard states that input dtype is to be preserved for floating point types when dtype
is unspecified.
dtype - data type of the returned array. If
None
, the returned array must have the same data type asx
, unlessx
has an integer data type
However,
from array_api_compat import numpy as np
x = np.arange(10, dtype=np.float32)
np.sum(x).dtype # dtype('float64')
Metadata
Metadata
Assignees
Labels
No labels