---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-0ae2dbb1731c> in <module>()
2
3 for i in xrange(NUM_MATRICES):
----> 4 rs0.append(random_skewers(ms[0], ms[i]))
<ipython-input-2-2902de40a553> in random_skewers(matrix1, matrix2, num_vectors)
12 delta_z2 = np.dot(matrix2, rand_vec)
13
---> 14 ndelta_z1 = delta_z1/np.sqrt((delta_z1*delta_z1).sum(0))
15 ndelta_z2 = delta_z2/np.sqrt((delta_z2*delta_z2).sum(0))
16
/home/walrus/.virtualenvs/py/local/lib/python2.7/site-packages/numpy/matrixlib/defmatrix.pyc in __mul__(self, other)
328 if isinstance(other,(N.ndarray, list, tuple)) :
329 # This promotes 1-D vectors to row vectors
--> 330 return N.dot(self, asmatrix(other))
331 if isscalar(other) or not hasattr(other, '__rmul__') :
332 return N.dot(self, other)
ValueError: objects are not aligned