I am using PocketBeagle for the first time, I would like to know how can I use the PRU of beaglebone with Python for Matrix multiplication for example?
Is it possible to run the code below,using PRU ?
Thanks in advance.
sigma = 2565/8192mu = np.array(A)[3]mu = mu[0]#Aa = np.array((A)).TAa = A.TY = np.array((B/np.array(B)[3])).Tfor i in range(10): N = np.exp(-(Aa-mu)**2/(2*sigma**2)) dNds = N*(np.power((Aa-mu),2)/(sigma**3)) dNdm = N*((Aa-mu)/(sigma**2)) F = np.concatenate((dNds,dNdm)) tmpM = F.dot(F.T) b0 = np.array([[(sigma),(mu)]]) det = (tmpM[0,0]*tmpM[1,1]-tmpM[1,0]*tmpM[0,1]) u = np.array((tmpM[1,1],-tmpM[0,1])) z = np.array((-tmpM[1,0],tmpM[0,0])) U = np.array((u,z)) tmpMinv = (1/det)*U k = tmpMinv.dot(F) b = k.dot((Y.T-N.T))+b0.T sigma = b[0,0] mu = b[1,0] print(mu)