We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
finfo
iinfo
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the standard, the only acceptable types for the argument of finfo are dtype and array. However, finfo and iinfo currently accept strings.
dtype
array
import array_api_strict as xp xp.finfo('float32') # finfo_object(bits=32, eps=1.1920928955078125e-07, max=3.4028234663852886e+38, min=-3.4028234663852886e+38, smallest_normal=1.1754943508222875e-38, dtype=dtype('float32')) # iinfo_object(bits=32, max=2147483647, min=-2147483648, dtype=dtype('int32'))
I'm not sure what the definition of the dtype type is, so this might be OK, but I'm guessing it's more flexible than intended.
The text was updated successfully, but these errors were encountered:
cross-ref gh-116
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
According to the standard, the only acceptable types for the argument of
finfo
aredtype
andarray
. However,finfo
andiinfo
currently accept strings.I'm not sure what the definition of the
dtype
type is, so this might be OK, but I'm guessing it's more flexible than intended.The text was updated successfully, but these errors were encountered: