Data Science, Linear Algebra, Mathematics.
by using .zeros() from numpy Example: import numpy as np print(np.zeros((3,2)) #prints a matrix of dimensions 3x2. “norm” of a vector can be found using NumPy's linalg submodule. Example: import numpy as np A = np.array([2,-4,1]) A_norm = np.linalg.norm(A) #gives 4.5825 Conclusion: In this blog, we