This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / docs

Doc

Array creation routines

docs/reference:routines.array-creation

From shape or value

.. autosummary:: 
    :toctree:generated/
    empty
    empty_like
    eye
    identity
    ones
    ones_like
    zeros
    zeros_like
    full
    full_like

From existing data

.. autosummary:: 
    :toctree:generated/
    array
    asarray
    asanyarray
    ascontiguousarray
    asmatrix
    astype
    copy
    frombuffer
    from_dlpack
    fromfile
    fromfunction
    fromiter
    fromstring
    loadtxt

Creating record arrays

.. autosummary:: 
    :toctree:generated/
    rec.array
    rec.fromarrays
    rec.fromrecords
    rec.fromstring
    rec.fromfile

Creating character arrays (numpy.char)

.. autosummary:: 
    :toctree:generated/
    char.array
    char.asarray

Numerical ranges

.. autosummary:: 
    :toctree:generated/
    arange
    linspace
    logspace
    geomspace
    meshgrid
    mgrid
    ogrid

Building matrices

.. autosummary:: 
    :toctree:generated/
    diag
    diagflat
    tri
    tril
    triu
    vander

The matrix class

.. autosummary:: 
    :toctree:generated/
    bmat