fork download
  1. import numpy as np
  2.  
  3.  
  4. def testTrisectEdge(x1, x2):
  5. dp = x1 * np.transpose(x2)
  6. print(dp)
  7. dp = np.sum(x1 * np.transpose(x2))
  8. print(dp)
  9.  
  10.  
  11. x1 = np.array([ 3, 1, 4 ])
  12. x2 = np.array([ 1, 5, 9 ])
  13. res = testTrisectEdge(x1,x2)
  14.  
Success #stdin #stdout 0.23s 92672KB
stdin
Standard input is empty
stdout
[ 3  5 36]
44