SHARE
TWEET

Untitled

a guest Aug 22nd, 2012 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn matrix-mult
  2.   [col1 col2]
  3.   (into (empty col1)
  4.         (map * col1 col2)))
  5.  
  6.  
  7. from operator import mul
  8.  
  9. def matrix_mult(a, b):
  10.     return type(a)( map(mul, a, b) )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top