Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
Let's begin by importing Numpy and listing out the functions covered in this notebook.
import numpy as np
# List of functions explained
function1 = np.linalg.eig
function2 = np.linalg.solve
function3 = np.mean
function4 = np.linalg.inv
function5 = np.vdot
Function 1 - np.linalg.eig
This function calculates Eigen Values of a square matrix.
# Example 1 - working
Eig_1 = np.array([[45,56,76],
[43,34,65],
[22,31,32]])
np.linalg.eig(Eig_1)
(array([127.35088752, -3.53455559, -12.81633193]),
array([[-0.72800443, -0.79678984, 0.14136533],
[-0.58464654, -0.11460827, -0.84527516],
[-0.35804743, 0.59328821, 0.5152919 ]]))