summaryrefslogtreecommitdiff
path: root/doc/source/reference/routines.array-creation.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/routines.array-creation.rst')
-rw-r--r--doc/source/reference/routines.array-creation.rst98
1 files changed, 98 insertions, 0 deletions
diff --git a/doc/source/reference/routines.array-creation.rst b/doc/source/reference/routines.array-creation.rst
new file mode 100644
index 000000000..b5385fb86
--- /dev/null
+++ b/doc/source/reference/routines.array-creation.rst
@@ -0,0 +1,98 @@
+.. _routines.array-creation:
+
+Array creation routines
+=======================
+
+.. seealso:: :ref:`Array creation <arrays.creation>`
+
+.. currentmodule:: numpy
+
+Ones and zeros
+--------------
+.. autosummary::
+ :toctree: generated/
+
+ empty
+ empty_like
+ eye
+ identity
+ ones
+ ones_like
+ zeros
+ zeros_like
+
+From existing data
+------------------
+.. autosummary::
+ :toctree: generated/
+
+ array
+ asarray
+ asanyarray
+ ascontiguousarray
+ asmatrix
+ copy
+ frombuffer
+ fromfile
+ fromfunction
+ fromiter
+ loadtxt
+
+.. _routines.array-creation.rec:
+
+Creating record arrays (:mod:`numpy.rec`)
+-----------------------------------------
+
+.. note:: :mod:`numpy.rec` is the preferred alias for :mod:`numpy.core.records`.
+
+.. autosummary::
+ :toctree: generated/
+
+ core.records.array
+ core.records.fromarrays
+ core.records.fromrecords
+ core.records.fromstring
+ core.records.fromfile
+
+.. _routines.array-creation.char:
+
+Creating character arrays (:mod:`numpy.char`)
+---------------------------------------------
+
+.. note:: :mod:`numpy.char` is the preferred alias for :mod:`numpy.core.defchararray`.
+
+.. autosummary::
+ :toctree: generated/
+
+ core.defchararray.array
+
+Numerical ranges
+----------------
+.. autosummary::
+ :toctree: generated/
+
+ arange
+ linspace
+ logspace
+ meshgrid
+ mgrid
+
+Building matrices
+-----------------
+.. autosummary::
+ :toctree: generated/
+
+ diag
+ diagflat
+ tri
+ tril
+ triu
+ vander
+
+The Matrix class
+----------------
+.. autosummary::
+ :toctree: generated/
+
+ mat
+ bmat