Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy vector multiplication

a = np.array([[ 5, 1 ,3], 
              [ 1, 1 ,1], 
              [ 1, 2 ,1]])
b = np.array([1, 2, 3])
print a.dot(b)
array([16, 6, 8])
 
PREVIOUS NEXT
Tagged: #numpy #vector #multiplication
ADD COMMENT
Topic
Name
7+7 =