GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 
  • Consortium for Python Data API Standards
  • API specification
  • Inspection
  • Purpose and scope
  • Terms and Definitions
  • Use cases
  • Assumptions
  • Design topics & constraints
  • Future API standard evolution
  • Array object
  • Broadcasting
  • Constants
  • Creation Functions

This view

  • Original page
  • New address

GeezerVison is showing data-apis.org — capabilities — Python array API standard DRAFT documentation

capabilities¶

capabilities() → Capabilities¶

Returns a dictionary of array library capabilities.

Returns:

out (Capabilities) – a dictionary of array library capabilities. The returned 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.

Notes

New in version 2023.12.

Changed in version 2024.12: Added support for querying the maximum number of supported dimensions.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.