Skip to content

Instantly share code, notes, and snippets.

@honno
Last active June 20, 2022 19:18
Show Gist options
  • Save honno/f0c02d7a2405aaae3b48af6ced45668d to your computer and use it in GitHub Desktop.
Save honno/f0c02d7a2405aaae3b48af6ced45668d to your computer and use it in GitHub Desktop.

A table which lists every function/method. A table which lists every function/method.

data-apis.org/array-api/latest/compliance-table

Pick a library and version:   numpy ▼   1.27.0 ▼

    abs                      🟢
    acos                     🟢
    add                      🟡  ▶
    ...
    linalg.matmul            🟢
    linalg.matrix_transpose  🔴  (not implemented)  # i.e. attribute matrix_transpose not found
    ...
    x.__pos__                🟢
    x.__neg__                🟢
    ...
    

Say you click on at the acosh line

add                    🟡  ▼
add is not fully compliant. Here is the error from the test suite:

    out[1]=1, but should be 2
    
    where
        x1    array([0, 1, ...])
        x2    array([0, 1, ...])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment