inner product
numpy - Arrays (9) (Vector and matrix mathematics)
numpy - Arrays (9) (Vector and matrix mathematics)
2015. 4. 16.Vector and matrix mathematics 벡터의 내적(dot product) 계산>>> a = np.array([[0,1],[2,3]], float)>>> b = np.array([2,3], float)>>> c = np.array([[1,1],[4,0]], float)>>> aarray([[ 0., 1.], [ 2., 3.]])>>> np.dot(b,a)array([ 6., 11.])>>> np.dot(a,b)array([ 3., 13.])>>> np.dot(a,c)array([[ 4., 0.], [ 14., 2.]])>>> np.dot(c,a)array([[ 2., 4.], [ 0., 4.]])>>> inner product, outer product, cross product 의 계산>..