capabilities

capabilities() Capabilities

Returns a dictionary of array library capabilities.

The dictionary must contain the following keys:

  • "boolean indexing": boolean indicating whether an array library supports boolean indexing. If a conforming implementation fully supports boolean indexing in compliance with this specification (see Indexing), the corresponding dictionary value must be True; otherwise, the value must be False.

  • "data-dependent shapes": boolean indicating whether an array library supports data-dependent output shapes. If a conforming implementation fully supports all APIs included in this specification (excluding boolean indexing) which have data-dependent output shapes, as explicitly demarcated throughout the specification, the corresponding dictionary value must be True; otherwise, the value must be False.

Returns:

out (Capabilities) – a dictionary of array library capabilities.

Notes