You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, should np.integral, np.floating, and np.complexfloating base classes be available in the Array API? This would allow other packages to create their own subtypes. Jax for example has additional floating dtypes.
The text was updated successfully, but these errors were encountered:
Hi @NeilGirdhar, thanks for asking. Whether dtypes should have a class hierarchy and how to check whether a dtype is of a certain kind was pretty extensively discussed in:
tl;dr not many libraries have a class hierarchy like numpy does, and it doesn't seem either necessary or a good idea to impose one in the standard
This would allow other packages to create their own subtypes. Jax for example has additional floating dtypes.
There should be no issue with JAX including additional dtypes in what isdtype does. Or have them work with dtype= keywords. Do you see a concrete problem with the current design?
Thanks for the links. I've read over the discussion now.
There should be no issue with JAX including additional dtypes in what isdtype does. Or have them work with dtype= keywords. Do you see a concrete problem with the current design?
That is, should
np.integral
,np.floating
, andnp.complexfloating
base classes be available in the Array API? This would allow other packages to create their own subtypes. Jax for example has additional floating dtypes.The text was updated successfully, but these errors were encountered: