Array creation routines#
From shape or value#
|
Return a new array of given shape and type, without initializing entries. |
|
Return a new array with the same shape and type as a given array. |
|
Return a 2-D array with ones on the diagonal and zeros elsewhere. |
|
Return the identity array. |
|
Return a new array of given shape and type, filled with ones. |
|
Return an array of ones with the same shape and type as a given array. |
|
Return a new array of given shape and type, filled with zeros. |
|
Return an array of zeros with the same shape and type as a given array. |
|
Return a new array of given shape and type, filled with fill_value. |
|
Return a full array with the same shape and type as a given array. |
From existing data#
|
array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, |
|
Convert the input to an array. |
|
Return a contiguous array (ndim >= 1) in memory (C order). |
|
Return an array copy of the given object. |
Numerical ranges#
|
Return evenly spaced values within a given interval. |
|
Return evenly spaced numbers over a specified interval. |
|
Return coordinate matrices from coordinate vectors. |
nd_grid instance which returns a dense multi-dimensional "meshgrid". |
|
nd_grid instance which returns an open multi-dimensional "meshgrid". |
Building matrices#
|
Extract a diagonal or construct a diagonal array. |
|
Create a two-dimensional array with the flattened input as a diagonal. |
|
Lower triangle of an array. |
|
Upper triangle of an array. |