Answers for "dot product formula"

R
0

r dot product

a = c(1,2)
b = c(0,1)

# Perform the dot product
a%*%b
Posted by: Guest on December-30-2020
1

dot product array

import numpy.matlib 
import numpy as np 

a = np.array([[1,2],[3,4]]) 
b = np.array([[11,12],[13,14]]) 
np.dot(a,b)
Posted by: Guest on June-21-2020

Browse Popular Code Answers by Language