Optionalstride: number[]Optionaloffset: numberData-type of the array’s elements.
Stringify the array to make it readable in the console, by a human.
Add x to the array, element-wise.
Assign x to the array, element-wise.
Create a full copy of the array
Returns the discrete, linear convolution of the array using the given filter.
@note: Arrays must have the same dimensions and filter must be smaller than the array.
@note: The convolution product is only given for points where the signals overlap completely. Values outside the signal boundary have no effect. This behaviour is known as the 'valid' mode.
@note: Use optimized code for 3x3, 3x3x1, 5x5, 5x5x1 filters, FFT otherwise.
Divide array by x, element-wise.
Return true if two arrays have the same shape and elements, false otherwise.
Calculate the exponential of all elements in the array, element-wise.
set to false to modify the array rather than create a new one
Return a copy of the array collapsed into one dimension using row-major order (C-style)
Return a shifted view of the array. Think of it as taking the upper left corner of the image and dragging it inward
Calculate the natural logarithm of all elements in the array, element-wise.
set to false to modify the array rather than create a new one
Return the maximum value of the array
Return the arithmetic mean of array elements.
Return the minimum value of the array
Return element-wise remainder of division.
Multiply array by x, element-wise.
Return the inverse of the array, element-wise.
Return a subarray by fixing a particular axis
a array whose element could be null or number
Raise array elements to powers from given array, element-wise.
set to false to modify the array rather than create a new one
Gives a new shape to the array without changing its data.
The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the value is inferred from the length of the array and remaining dimensions.
a new view object if possible, a copy otherwise,
Gives a new shape to the array without changing its data.
The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the value is inferred from the length of the array and remaining dimensions.
a new view object if possible, a copy otherwise,
Calculate the positive square-root of all elements in the array, element-wise.
set to false to modify the array rather than create a new one
Returns the standard deviation, a measure of the spread of a distribution, of the array elements.
Optionaloptions: { ddof: number }default {ddof:0}
Subtract x to the array, element-wise.
Sum of array elements.
Stringify object to JSON
Converts {NdArray} to a native JavaScript {Array}
Stringify the array to make it readable by a human.
StaticnewOptionaldtype:
Multidimensional, homogeneous array of fixed-size items
The number of dimensions and items in an array is defined by its shape, which is a tuple of N positive integers that specify the sizes of each dimension. The type of items in the array is specified by a separate data-type object (dtype), one of which is associated with each NdArray.