Numpy Fundamentals
Create an array
Numpy creates objects of type numpy.ndarray
Compute dot product
Computes dot product
For 1D arrays it is inner product of vectors
For 2D arrays it is element-wise matrix multiplication (using matmul or a @ b is preferred)
For 0D scalars it is multiplication (a * b is preferred)
Create 2D array
Numpy can work with n-dimensional
arrays
Create linear space
To create an ndarray of numbers over a specified interval
Last updated