numpy.array — NumPy v1.25 Manual
numpy.org › reference › generatednumpy.array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, like=None) #. Create an array. Parameters: objectarray_like. An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.
NumPy: the absolute basics for beginners — NumPy v1.25 Manual
numpy.org › doc › stableOne way we can initialize NumPy arrays is from Python lists, using nested lists for two- or higher-dimensional data. For example: >>> a = np.array( [1, 2, 3, 4, 5, 6]) or: >>> a = np.array( [ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]) We can access the elements in the array using square brackets.
Mathematical functions — NumPy v1.25 Manual
numpy.org › doc › stableThe differences between consecutive elements of an array. gradient (f, *varargs[, axis, edge_order]) Return the gradient of an N-dimensional array. cross (a, b[, axisa, axisb, axisc, axis]) Return the cross product of two (arrays of) vectors. trapz (y[, x, dx, axis]) Integrate along the given axis using the composite trapezoidal rule.
numpy.array — NumPy v1.25 Manual
https://numpy.org/doc/stable/reference/generated/numpy.array.htmlWebnumpy.array. #. numpy.array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, like=None) #. Create an array. Parameters: objectarray_like. An array, any object exposing the array interface, an object whose __array__ method returns an array, or …