Array Operations¶
Array 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. |
|
Creates an array. |
|
Converts an object to an array. |
|
Converts an object to an array. |
|
Returns a C-contiguous array. |
|
Creates a copy of a given array. |
|
Returns a 1-D array interpretation of a buffer. |
|
Constructs an array from data in a text or binary file. |
|
Constructs an array by executing a function over each coordinate. |
|
Constructs a new 1-D array from an iterable object. |
|
Constructs a new 1-D array initialized from text data in a string. |
|
Constructs an array by loading data from a text file. |
|
Returns an array with evenly spaced values within a given interval. |
|
Returns an array with evenly spaced numbers over a specified interval. |
|
Returns a diagonal or a diagonal array. |
|
Creates a diagonal array from the flattened input. |
Activation functions¶
The log of the softmax of input array. |
|
Hyperbolic tangent, element-wise |
|
Rectified Linear Unit function. |
|
Array manipulation routines¶
Returns a reshaped array. |
|
Returns a flattened array. |
|
Permutes the dimensions of an array. |
|
Broadcasts an array to a given shape. |
|
Removes size-one axes from the shape of an array. |
|
Converts an object to an array. |
|
Returns a C-contiguous array. |
|
Joins arrays along an axis. |
|
Stacks arrays along a new axis. |
|
Splits an array into multiple sub arrays along a given axis. |
Indexing routines¶
Takes elements from an array along an axis. |
Linear algebra¶
Returns a dot product of two arrays. |
Logic functions¶
Test element-wise for positive or negative infinity. |
|
Test element-wise for NaN and return result as a boolean array. |
|
Returns an array of x1 AND x2 element-wise. |
|
Returns an array of x1 OR x2 element-wise. |
|
Returns an array of NOT x element-wise. |
|
Returns an array of (x1 > x2) element-wise. |
|
Returns an array of (x1 >= x2) element-wise. |
|
Returns an array of (x1 < x2) element-wise. |
|
Returns an array of (x1 <= x2) element-wise. |
|
Returns an array of (x1 == x2) element-wise. |
|
Returns an array of (x1 != x2) element-wise. |
Mathematical functions¶
Numerical negative, element-wise. |
|
Add arguments, element-wise. |
|
Subtract arguments, element-wise. |
|
Multiply arguments, element-wise. |
|
Divide arguments, element-wise. |
|
Sum of array elements over a given axis. |
|
Maximum arguments, element-wise. |
|
Numerical exponential, element-wise. |
|
Natural logarithm, element-wise. |
|
The log of the sum of exponentials of input array. |
|
The log of the softmax of input array. |
|
Non-negative square-root, element-wise |
|
Sine, element-wise |
|
Cosine, element-wise |
|
Tangent, element-wise |
|
Inverse sine, element-wise |
|
Trigonometric inverse cosine, element-wise |
|
Trigonometric inverse tangent, element-wise |
|
Hyperbolic tangent, element-wise |
|
Returns the element-wise square of the input. |
|
Clips the values of an array to a given interval. |
|
Return the ceiling of the input, element-wise.. |
Random sampling¶
Draws random samples from a normal (Gaussian) distribution. |
|
Draws samples from a uniform distribution. |
Sorting, searching, and counting¶
Returns the indices of the maximum along an axis. |
Statistics¶
Returns the maximum of an array or the maximum along an axis. |
Connection¶
N-dimensional convolution. |
|
N-dimensional transposed convolution. |
|
Linear function, or affine transformation. |
Normalization¶
Batch normalization function. |
|
Batch normalization function with fixed statistics. |
Pooling¶
Spatial max pooling function. |
|
Spatial average pooling function. |