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
  • Purpose and scope
  • Terms and Definitions
  • Use cases
  • Assumptions
  • Design topics & constraints
  • Future API standard evolution
  • API specification
  • Array object
  • Broadcasting
  • Constants
  • Creation Functions
  • Data Type Functions

This view

  • Original page
  • New address

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

API specification¶

A conforming implementation of the array API standard must provide and support the APIs and behavior detailed in this specification while adhering to the following conventions.

  • When a function signature includes a /, positional parameters must be positional-only parameters. See Function and method signatures.

  • When a function signature includes a *, optional parameters must be keyword-only arguments. See Function and method signatures.

  • Broadcasting semantics must follow the semantics defined in Broadcasting.

  • Unless stated otherwise, functions must support the data types defined in Data Types.

  • Functions may only be required for a subset of input data types. Libraries may choose to implement functions for additional data types, but that behavior is not required by the specification. See Data Type Categories.

  • Unless stated otherwise, functions must adhere to the type promotion rules defined in Type Promotion Rules.

  • Unless stated otherwise, floating-point operations must adhere to IEEE 754-2019.

  • Unless stated otherwise, element-wise mathematical functions must satisfy the minimum accuracy requirements defined in Accuracy.

API specification

  • Array object
    • Operators
      • Arithmetic Operators
      • Array Operators
      • Bitwise Operators
      • Comparison Operators
      • In-place Operators
      • Reflected Operators
    • Attributes
      • dtype
      • device
      • mT
      • ndim
      • shape
      • size
      • T
      • __dlpack_c_exchange_api__
    • Methods
      • __abs__
      • __add__
      • __and__
      • __array_namespace__
      • __bool__
      • __complex__
      • __dlpack__
      • __dlpack_device__
      • __eq__
      • __float__
      • __floordiv__
      • __ge__
      • __getitem__
      • __gt__
      • __index__
      • __int__
      • __invert__
      • __le__
      • __lshift__
      • __lt__
      • __matmul__
      • __mod__
      • __mul__
      • __ne__
      • __neg__
      • __or__
      • __pos__
      • __pow__
      • __rshift__
      • __setitem__
      • __sub__
      • __truediv__
      • __xor__
      • to_device
  • Broadcasting
    • Overview
    • Algorithm
      • Examples
    • In-place Semantics
  • Constants
    • Objects in API
      • e
      • inf
      • nan
      • newaxis
      • pi
  • Creation Functions
    • Objects in API
      • arange
      • asarray
      • empty
      • empty_like
      • eye
      • from_dlpack
      • full
      • full_like
      • linspace
      • meshgrid
      • ones
      • ones_like
      • tril
      • triu
      • zeros
      • zeros_like
  • Data Type Functions
    • Objects in API
      • astype
      • can_cast
      • finfo
      • iinfo
      • isdtype
      • result_type
  • Data Types
    • __eq__
      • __eq__()
    • Use of data type objects
    • Default Data Types
    • Data Type Categories
  • Element-wise Functions
    • Objects in API
      • abs
      • acos
      • acosh
      • add
      • asin
      • asinh
      • atan
      • atan2
      • atanh
      • bitwise_and
      • bitwise_left_shift
      • bitwise_invert
      • bitwise_or
      • bitwise_right_shift
      • bitwise_xor
      • ceil
      • clip
      • conj
      • copysign
      • cos
      • cosh
      • divide
      • equal
      • exp
      • expm1
      • floor
      • floor_divide
      • greater
      • greater_equal
      • hypot
      • imag
      • isfinite
      • isinf
      • isnan
      • less
      • less_equal
      • log
      • log1p
      • log2
      • log10
      • logaddexp
      • logical_and
      • logical_not
      • logical_or
      • logical_xor
      • maximum
      • minimum
      • multiply
      • negative
      • nextafter
      • not_equal
      • positive
      • pow
      • real
      • reciprocal
      • remainder
      • round
      • sign
      • signbit
      • sin
      • sinh
      • square
      • sqrt
      • subtract
      • tan
      • tanh
      • trunc
  • Function and method signatures
  • Indexing
    • Single-axis Indexing
      • Slice Syntax
    • Multi-axis Indexing
    • Integer Array Indexing
    • Boolean Array Indexing
    • Return Values
  • Indexing Functions
    • Objects in API
      • take
      • take_along_axis
  • Inspection
    • Objects in API
      • __array_namespace_info__
    • Inspection APIs
      • capabilities
      • default_device
      • default_dtypes
      • devices
      • dtypes
  • Linear Algebra Functions
    • Objects in API
      • matmul
      • matrix_transpose
      • tensordot
      • vecdot
  • Manipulation Functions
    • Objects in API
      • broadcast_arrays
      • broadcast_shapes
      • broadcast_to
      • concat
      • expand_dims
      • flip
      • moveaxis
      • permute_dims
      • repeat
      • reshape
      • roll
      • squeeze
      • stack
      • tile
      • unstack
  • Searching Functions
    • Objects in API
      • argmax
      • argmin
      • count_nonzero
      • nonzero
      • searchsorted
      • top_k
      • where
  • Set Functions
    • Objects in API
      • isin
      • unique_all
      • unique_counts
      • unique_inverse
      • unique_values
  • Sorting Functions
    • Objects in API
      • argsort
      • sort
  • Statistical Functions
    • Objects in API
      • cumulative_prod
      • cumulative_sum
      • max
      • mean
      • min
      • prod
      • std
      • sum
      • var
  • Type Promotion Rules
    • Rules
      • Signed integer type promotion table
      • Unsigned integer type promotion table
      • Mixed unsigned and signed integer type promotion table
      • Floating-point type promotion table
      • Notes
      • Mixing arrays with Python scalars
  • Utility Functions
    • Objects in API
      • all
      • any
      • diff
  • Version
    • Objects in API
      • __array_api_version__
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.