Constants

Array API specification for constants.

A conforming implementation of the array API standard must provide and support the following constants adhering to the following conventions.

  • Each constant must have a Python floating-point data type (i.e., float) and be provided as a Python scalar value.

Objects in API

e

IEEE 754 floating-point representation of Euler's constant.

inf

IEEE 754 floating-point representation of (positive) infinity.

nan

IEEE 754 floating-point representation of Not a Number (NaN).

newaxis

An alias for None which is useful for indexing arrays.

pi

IEEE 754 floating-point representation of the mathematical constant π.