Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 737 Bytes

File metadata and controls

41 lines (31 loc) · 737 Bytes

Creation Functions

Array API specification for creating arrays.

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

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


Note

Creation functions which accept device and dtype arguments should raise an exception if the explicitly provided dtype is not supported by the device.