C Lang/machine learing

3-5.Numpy Section(array functions:element wise operation, dot product, transpose, broadcasting, $testit performance test,역행렬 구하기)

iliosncelini 2018. 11. 16. 13:19















역행렬구하기 



1
2
3
4
5
6
7
8
import numpy as np
import numpy.linalg as lin
= np.array([[2,2,0],[-2,1,1],[3,0,1]])
lin.inv(k)
#array([[ 0.08333333, -0.16666667,  0.16666667],
#       [ 0.41666667,  0.16666667, -0.16666667],
#       [-0.25      ,  0.5       ,  0.5       ]])
cs