Array Creation Routines¶
Basic creation routines¶
Returns an array without initializing the elements. |
|
Returns a new array with same shape and dtype of a given array. |
|
Returns a 2-D array with ones on the diagonals and zeros elsewhere. |
|
Returns a 2-D identity array. |
|
Returns a new array of given shape and dtype, filled with ones. |
|
Returns an array of ones with same shape and dtype as a given array. |
|
Returns a new array of given shape and dtype, filled with zeros. |
|
Returns an array of zeros with same shape and dtype as a given array. |
|
Returns a new array of given shape and dtype, filled with a given value. |
|
Returns a full array with same shape and dtype as a given array. |
Creation from other data¶
Creates an array on the current device. |
|
Converts an object to array. |
|
Converts an object to array. |
|
Returns a C-contiguous array. |
|
Creates a copy of a given array on the current device. |
|
Reads an array from a file. |
Numerical ranges¶
Returns an array with evenly spaced values within a given interval. |
|
Returns an array with evenly-spaced values within a given interval. |
|
Returns an array with evenly-spaced values on a log-scale. |
|
Return coordinate matrices from coordinate vectors. |
|
Construct a multi-dimensional “meshgrid”. |
|
Construct a multi-dimensional “meshgrid”. |