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.

  • "max dimensions": maximum number of supported dimensions. If a conforming implementation supports arrays having an arbitrary number of dimensions (potentially infinite), the corresponding dictionary value must be None; otherwise, the value must be a finite integer.

Returns:

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

Notes