Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1007 Bytes

creation_functions.rst

File metadata and controls

38 lines (30 loc) · 1007 Bytes

Creation Functions

Array API specification for creating arrays.

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

  • Positional parameters must be positional-only parameters. Positional-only parameters have no externally-usable name. When a function accepting positional-only parameters is called, positional arguments are mapped to these parameters based solely on their order.
  • Optional parameters must be keyword-only arguments.

Objects in API

.. currentmodule:: array_api

.. autosummary::
   :toctree: generated
   :template: method.rst

   arange
   asarray
   empty
   empty_like
   eye
   from_dlpack
   full
   full_like
   linspace
   meshgrid
   ones
   ones_like
   tril
   triu
   zeros
   zeros_like