heat icon indicating copy to clipboard operation
heat copied to clipboard

Array API compliance

Open fschlimb opened this issue 3 years ago • 8 comments

A consortium is defining an Array API: https://data-apis.org/array-api/latest/index.html

It seems desirable for HeAT to be as compliant as possible.

The following features are missing in HeAT (others are probably incomplete):

['acosh',
'argsort',
'asinh',
'atanh',
'bitwise_invert',
'bitwise_left_shift',
'bitwise_right_shift',
'broadcast_arrays',
'broadcast_to',
'from_dlpack',
'greater',
'greater_equal',
'less',
'less_equal',
'logaddexp',
'meshgrid',
'not_equal',
'result_type',
'sign',
'square',
'uint16',
'uint32',
'uint64']

The following features are missing in the array itself (others are probably incomplete):

['__abs__',
 '__array_namespace__',
 '__dlpack__',
 '__dlpack_device__',
 '__iadd__',
 '__iand__',
 '__iflowdiv__',
 '__ilshift__',
 '__imatmul__',
 '__imod__',
 '__imul__',
 '__ior__',
 '__ipow__',
 '__irshift__',
 '__isub__',
 '__itruediv__',
 '__ixor__',
 '__rand__',
 '__rflowdiv__',
 '__rlshift__',
 '__rmatmul__',
 '__ror__',
 '__rrshift__',
 '__rxor__']

fschlimb avatar May 19 '21 10:05 fschlimb

Thanks a lot for this list @fschlimb!

ClaudiaComito avatar May 26 '21 09:05 ClaudiaComito

bitwise_invert, bitwise_left_shift and bitwise_right_shift are implemented as ht.invert, ht.left_shift and ht.right_shift following the NumPy API reference.

ClaudiaComito avatar May 26 '21 10:05 ClaudiaComito

hello @ClaudiaComito , I would like to work on this issue as a part of gsoc. It would be great If you could guide me how can I start. I am aware of numpy but not much aware of parallel computing. I found project here:https://docs.google.com/document/d/1OKUf_n_whN0M20c__jj8R5jyGABPYYxmdBfyzto4OZk/edit

Dhruv454000 avatar Mar 23 '22 08:03 Dhruv454000

This is still work-in-progress and being tracked in #1022.


Reviewed within #1109

ClaudiaComito avatar Aug 21 '23 09:08 ClaudiaComito

Check out https://github.com/data-apis/array-api/issues/462 for tracking and potentially signalling array API compliance, although it doesn't look like the workflow is final.

ClaudiaComito avatar Aug 28 '23 14:08 ClaudiaComito