Operations on Numpy Arrays
Reshape the array to a desired size
Note: We can use '-1' as the last dimension during reshape and numpy will figure out the required dimension automatically.
Stacking arrays horizontally and vertically
Mathematical Operations on arrays
Note: If you want to apply a customized function on arrays, make sure to vectorize the function and apply it like inbuilt functions. If you use for loops the power of numpy is lost.
Linear Algebra - Inverse, Determinant, Eigen Values, Dot Product
Swapping elements of numpy array
Print Matrix such that borders are filled with ones, and rest of elements are filled with zero
Transpose of Matrix
If we have a set of data points upto , stored in array, we can create a design matrix using vstack and transpose.