Return absolute value of the input array, element-wise.
Add arguments, element-wise.
Return evenly spaced values within a given interval.
Default 0 (int). Start of interval. The interval includes this value.
End of interval (int). The interval does not include this value.
Default 1 (int). Spacing between values. The default step size is 1. If step is specified, start must also be given.
Defaut is "array". The type of the output array. Either string (e.g. 'uint8') or a Constructor function (e.g. Uint8Array).
Return trigonometric inverse cosine of the input array, element-wise.
Return trigonometric inverse sine of the input array, element-wise.
Return trigonometric inverse tangent of the input array, element-wise.
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
Clip (limit) the values in an array between min and max, element-wise.
Join given arrays along the last axis.
Convolve 2 N-dimensionnal arrays
Return trigonometric cosine of the input array, element-wise.
Extract a diagonal or construct a diagonal array.
a view a of the original array when possible, a new array otherwise
Divide a
by b
, element-wise.
Dot product of two arrays.
WARNING: supported products are:
Return a new array of given shape and type, filled with undefined
values.
Shape of the new array, e.g., [2, 3] or 2.
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
Array of undefined
values with the given shape and dtype
Return true if two arrays have the same shape and elements, false otherwise.
Calculate the exponential of all elements in the input array, element-wise.
Convolve 2 N-dimensionnal arrays using Fast Fourier Transform (FFT)
Return a copy of the array collapsed into one dimension using row-major order (C-style)
Reverse the order of elements in an array along the given axis. The shape of the array is preserved, but the elements are reordered. New in version 0.15.0.
Input array.
Axis in array, which entries are reversed.
A view of m
with the entries of axis reversed. Since a view is returned, this operation is done in constant time.
The identity array is a square array with ones on the main diagonal.
number of rows (and columns) in n x n output.
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
n x n array with its main diagonal set to one, and all other elements 0
Calculate the natural logarithm of all elements in the input array, element-wise.
Return the maximum value of the array
Return the arithmetic mean of input array elements.
Return the minimum value of the array
Return element-wise remainder of division.
Computes the remainder complementary to the floor
function. It is equivalent to the Javascript modulus operatorx1 % x2
and has the same sign as the divisor x2.
Multiply arguments, element-wise.
Return the inverse of the input array, element-wise.
Return a new array of given shape and type, filled with ones.
Shape of the new array, e.g., [2, 3] or 2.
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
Array of ones with the given shape and dtype
Raise first array elements to powers from second array, element-wise.
Gives a new shape to an 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
Rotate an array by 90 degrees in the plane specified by axes. Rotation direction is from the first towards the second axis. New in version 0.15.0.
array_like
Number of times the array is rotated by 90 degrees.
Default [0, 1]. The array is rotated in the plane defined by the axes. Axes must be different.
A rotated view of m.
Round an array to the to the nearest integer.
Return the sigmoid of the input array, element-wise.
stifness parameter
Return trigonometric sine of the input array, element-wise.
Return the softmax, or normalized exponential, of the input array, element-wise.
Calculate the positive square-root of all elements in the input array, element-wise.
Join a sequence of arrays along a new axis. The axis parameter specifies the index of the new axis in the dimensions of the result. For example, if axis=0 it will be the first dimension and if axis=-1 it will be the last dimension.
Sequence of array_like
The axis in the result array along which the input arrays are stacked.
The stacked array has one more dimension than the input arrays.
Returns the standard deviation, a measure of the spread of a distribution, of the input array elements.
Subtract second argument from the first, element-wise.
Return the sum of input array elements.
Return trigonometric tangent of the input array, element-wise.
Return hyperbolic tangent of the input array, element-wise.
Permute the dimensions of the input array according to the given axes.
Return a new array of given shape and type, filled with zeros.
Shape of the new array, e.g., [2, 3] or 2.
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
Generated using TypeDoc
This is default exported
nj
module page. Below References, Namespaces, Properties, Functions are all exported. For example, after importnj
viaimport nj from "@d4c/numjs";
orconst nj = require('@d4c/numjs').default;
, you can usenj.array
to use create aNdArray
.