Answers for "numpy dot function"

1

numpy dot product

a = np.array([[1,2],[3,4]]) 
b = np.array([[11,12],[13,14]]) 
np.dot(a,b)
[[37  40], [85  92]]
Posted by: Guest on March-26-2020
1

numpy.dot

a = [[1, 0], [0, 1]]
>>> b = [[4, 1], [2, 2]]
>>> np.dot(a, b)
array([[4, 1],
       [2, 2]])
Posted by: Guest on December-26-2021
0

numpy.dot

np.dot(3, 4)
12
Posted by: Guest on December-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language