Array Creation Routines
Contents
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, without initializing entries. |
|
Return an array of zeros with the same shape and type as a given array. |
From existing data#
|
Creates a BlockArray. |
|
Return an array copy of the given object. |
|
Load data from a text file. |
Numerical ranges#
|
Return evenly spaced values within a given interval. |
|
Return evenly spaced numbers over a specified interval. |
|
Return numbers spaced evenly on a log scale. |
Building matrices#
|
Extract a diagonal or construct a diagonal array. |