mxnet.numpyΒΆ
MXNet NumPy module.
Functions
|
Calculate the absolute value element-wise. |
|
Calculate the absolute value element-wise. |
|
Trigonometric inverse cosine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Add arguments element-wise. |
|
Test whether all array elements along a given axis evaluate to True. |
|
Return the maximum of an array or maximum along an axis. |
|
Return the minimum of an array or minimum along an axis. |
|
Test whether any array element along a given axis evaluates to True. |
|
Append values to the end of an array. |
|
Return evenly spaced values within a given interval. |
|
Trigonometric inverse cosine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse sine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Element-wise arc tangent of |
|
Inverse hyperbolic tangent, element-wise. |
|
Returns the indices of the maximum values along an axis. |
|
Returns the indices of the minimum values along an axis. |
|
Returns the indices that sort an array x along a specified axis. |
|
Evenly round to the given number of decimals. |
|
Create an array. |
|
Split an array into multiple sub-arrays. |
|
Convert the input to an array. |
|
Inverse sine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Element-wise arc tangent of |
|
Inverse hyperbolic tangent, element-wise. |
|
Convert inputs to arrays with at least one dimension. |
|
Convert inputs to arrays with at least two dimensions. |
|
Convert inputs to arrays with at least three dimension. |
|
Compute the weighted average along the specified axis. |
|
Count number of occurrences of each value in array of non-negative ints. |
|
Compute the bit-wise XOR of two arrays element-wise. |
|
Compute bit-wise inversion, or bit-wise NOT, element-wise. |
|
Shift the bits of and integer to the left. |
|
Compute bit-wise inversion, or bit-wise NOT, element-wise. |
|
Compute the bit-wise OR of two arrays element-wise. |
|
Shift the bits of and integer to the right. |
|
Compute the bit-wise XOR of two arrays element-wise. |
|
Return the Blackman window. |
|
Broadcast an array to a new shape. |
|
Return the cube-root of an array, element-wise. |
|
Return the ceiling of the input, element-wise. |
|
Clip (limit) the values in an array. |
|
Stack 1-D arrays as columns into a 2-D array. |
|
Join a sequence of arrays along an existing axis. |
|
Join a sequence of arrays along an existing axis. |
|
Return an array copy of the given object. |
|
Change the sign of x1 to that of x2, element-wise. |
|
Cosine, element-wise. |
|
Hyperbolic cosine, element-wise. |
|
Return the cross product of two (arrays of) vectors. |
|
Return the cumulative sum of the elements along a given axis. |
|
Convert angles from degrees to radians. |
|
Convert angles from radians to degrees. |
|
Return a new array with sub-arrays along an axis deleted. |
|
Extracts a diagonal or constructs a diagonal array. |
|
This returns a tuple of indices that can be used to access the main diagonal of an array a with a.ndim >= 2 dimensions and shape (n, n, ..., n). |
|
Create a two-dimensional array with the flattened input as a diagonal. |
|
If a is 2-D, returns the diagonal of a with the given offset, i.e., the collection of elements of the form a[i, i+offset]. |
|
Calculate the n-th discrete difference along the given axis. |
|
Returns a true division of the inputs, element-wise. |
|
Dot product of two arrays. |
|
Split array into multiple sub-arrays along the 3rd axis (depth). |
|
Stack arrays in sequence depth wise (along third axis). |
|
The differences between consecutive elements of an array. |
|
Evaluates the Einstein summation convention on the operands. |
|
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 (x1 == x2) element-wise. |
|
Calculate the exponential of all elements in the input array. |
|
Expand the shape of an array. |
|
Calculate exp(x) - 1 for all elements in the array. |
|
Return a 2-D array with ones on the diagonal and zeros elsewhere. |
|
Calculate the absolute value element-wise. |
|
Fill the main diagonal of the given array of any dimensionality. |
|
Round an array of floats element-wise to nearest integer towards zero. |
|
Return indices that are non-zero in the flattened version of a. |
|
Reverse the order of elements in an array along the given axis. |
|
Flip array in the left/right direction. |
|
Flip array in the up/down direction. |
|
Return the floor of the input, element-wise. |
|
Return the largest integer smaller or equal to the division of the inputs. |
|
Returns element-wise maximum of the input arrays with broadcasting. |
|
Returns element-wise minimum of the input arrays with broadcasting. |
|
Return element-wise remainder of division. |
|
Returns a np.ndarray backed by a dlpack tensor. |
|
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. |
|
Returns the greatest common divisor of |
|
Return the truth value of (x1 > x2) element-wise. |
|
Return the truth value of (x1 >= x2) element-wise. |
|
Return the hamming window. |
|
Return the Hanning window. |
|
Compute the histogram of a set of data. |
|
Split an array into multiple sub-arrays horizontally (column-wise). |
|
Stack arrays in sequence horizontally (column wise). |
|
Given the "legs" of a right triangle, return its hypotenuse. |
|
Return the identity array. |
|
Return an array representing the indices of a grid. |
|
Inner product of two arrays. |
|
Insert values along the given axis before the given indices. |
|
One-dimensional linear interpolation. |
|
Compute bit-wise inversion, or bit-wise NOT, element-wise. |
|
Test element-wise for finiteness (not infinity or not Not a Number). |
|
Test element-wise for positive or negative infinity. |
|
Test element-wise for NaN and return result as a boolean array. |
|
Test element-wise for negative infinity, return result as bool array. |
|
Kronecker product of two arrays. |
|
Returns the lowest common multiple of |
|
Returns x1 * 2**x2, element-wise. |
|
Return the truth value of (x1 < x2) element-wise. |
|
Return the truth value of (x1 <= x2) element-wise. |
|
Return evenly spaced numbers over a specified interval. |
|
Natural logarithm, element-wise. |
|
Return the base 10 logarithm of the input array, element-wise. |
|
Return the natural logarithm of one plus the input array, element-wise. |
|
Base-2 logarithm of x. |
|
Logarithm of the sum of exponentiations of the inputs. |
|
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of NOT x element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Compute the truth value of x1 XOR x2 element-wise. |
|
Return numbers spaced evenly on a log scale. |
|
Matrix product of two arrays. |
|
Return the maximum of an array or maximum along an axis. |
|
Returns element-wise maximum of the input arrays with broadcasting. |
|
Determine if two arrays might share memory |
|
Compute the arithmetic mean along the specified axis. |
|
Compute the median along the specified axis. |
|
Return the minimum of an array or minimum along an axis. |
|
Returns element-wise minimum of the input arrays with broadcasting. |
|
Return element-wise remainder of division. |
|
Move axes of an array to new positions. |
|
Multiply arguments element-wise. |
|
Replace NaN with zero and infinity with large finite numbers (default behaviour) or with the numbers defined by the user using the nan, posinf and/or neginf keywords. |
|
Numerical negative, element-wise. |
|
Return the indices of the elements that are non-zero. |
|
Return (x1 != x2) element-wise. |
|
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. |
|
Compute the outer product of two vectors. |
|
Pad an array. |
|
Compute the q-th percentile of the data along the specified axis. |
|
Permute the dimensions of an array. |
|
Evaluate a polynomial at specific values. |
|
Computes the numerical positive of each element x_i (i.e.,`y_i = +x_i`) of the input array x . |
|
First array elements raised to powers from second array, element-wise. |
|
First array elements raised to powers from second array, element-wise. |
|
Return the product of array elements over a given axis. |
|
Return the product of array elements over a given axis. |
|
Compute the q-th quantile of the data along the specified axis. |
|
Convert angles from radians to degrees. |
|
Convert angles from degrees to radians. |
|
Return a contiguous flattened array. |
|
Return the reciprocal of the argument, element-wise. |
|
Return element-wise remainder of division. |
|
Repeat elements of an array. |
|
Gives a new shape to an array without changing its data. |
|
Return a new array with the specified shape. |
|
Round elements of the array to the nearest integer. |
|
Roll array elements along a given axis. |
|
Roll the specified axis backwards, until it lies in a given position. |
|
Rotate an array by 90 degrees in the plane specified by axes. |
|
Round an array to the given number of decimals. |
|
Round an array to the given number of decimals. |
|
Stack arrays in sequence vertically (row wise). |
|
Set printing options. |
|
Return the shape of an array. |
|
Determine if two arrays share memory |
|
Returns an element-wise indication of the sign of a number. |
|
Trigonometric sine, element-wise. |
|
Hyperbolic sine, element-wise. |
|
Check whether some values are true. |
|
Return a sorted copy of an array. |
|
Split an array into multiple sub-arrays. |
|
Return the non-negative square-root of an array, element-wise. |
|
Return the element-wise square of the input. |
|
Remove single-dimensional entries from the shape of an array. |
|
Join a sequence of arrays along a new axis. |
|
Compute the standard deviation along the specified axis. |
|
Subtract arguments element-wise. |
|
Sum of array elements over a given axis. |
|
Interchange two axes of an array. |
|
Take elements from an array along an axis. |
|
Compute tangent element-wise. |
|
Compute hyperbolic tangent element-wise. |
|
Compute tensor dot product along specified axes for arrays >= 1-D. |
|
Construct an array by repeating A the number of times given by reps. |
|
Return the sum along diagonals of the array. |
|
Permute the dimensions of an array. |
|
An array with ones at and below the given diagonal and zeros elsewhere. |
|
Lower triangle of an array. |
|
Return the indices for the lower-triangle of an (n, m) array. |
|
Upper triangle of an array. |
|
Return the indices for the upper-triangle of an (n, m) array. |
|
Return the indices for the upper-triangle of arr. |
|
Returns a true division of the inputs, element-wise. |
|
Return the truncated value of the input, element-wise. |
|
Find the unique elements of an array. |
|
Converts a flat index or array of flat indices into a tuple of coordinate arrays. |
|
Compute the variance along the specified axis. |
|
Return the dot product of two vectors. |
|
Split an array into multiple sub-arrays vertically (row-wise). |
|
Stack arrays in sequence vertically (row wise). |
|
Return elements chosen from x or y depending on condition. |
|
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. |
Classes
ndarray(handle, writable=True): |
Modules
ndarray print format controller. |
|
Operators that fallback to official NumPy implementation. |
|
Operators that fallback to official NumPy implementation for np.linalg. |
|
Numpy basic functions. |
|
I/O functions for ndarrays. |
|
Namespace for ops used in imperative programming. |
|
numpy ndarray and util functions. |
|
Namespace for ops used in imperative programming. |
|
Standard Array API for creating and operating on sets. |
|
Util functions with broadcast. |
|
Type functions for the numpy module. |
|
Util functions for the numpy module. |