Permute the dimensions of the array.
Data-type of the array’s elements.
Data-type of the array’s elements.
Number of array dimensions.
The shape of the array
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.
Divide array by x
, element-wise.
Dot product of two arrays.
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 sliced view of the array.
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,
Round array to the to the nearest integer.
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.
default {ddof:0}
Subtract x
to the array, element-wise.
Sum of array elements.
Stringify object to JSON
Stringify the array to make it readable by a human.
Converts {NdArray} to a native JavaScript {Array}
Generated using TypeDoc
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.