Array Creation Routines
Basic creation routines
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. |
|
Generate a Vandermonde matrix. |
Creation from other data
Creates an array. |
|
Converts an input object into array. |
|
Convert the input to an ndarray, but pass ndarray subclasses through. |
|
Return a contiguous array (ndim >= 1) in memory (C order). |
|
Return an array copy of the given object. |
|
Construct an array from data in a text or binary file. |
Numerical ranges
Returns an array with evenly spaced values within a given interval. |
|
Return evenly spaced numbers over a specified interval. |
|
Return numbers spaced evenly on a log scale. |
|
Return numbers spaced evenly on a log scale (a geometric progression). |
|
Return coordinate matrices from coordinate vectors. |
|
Construct a dense multi-dimensional "meshgrid". |
|
Construct an open multi-dimensional "meshgrid". |
Matrix creation
Extract a diagonal or construct a diagonal array. |
|
Create a two-dimensional array with the flattened input as a diagonal. |
|
An array with ones at and below the given diagonal and zeros elsewhere. |
|
Lower triangle of an array. |
|
Upper triangle of an array. |