Changes

Jump to navigation Jump to search

Numpy linalg

48 bytes added, 12:15, 19 June 2014
http://stackoverflow.com/questions/772124/what-does-the-python-ellipsis-object-do
"'''...'''" Is designed to mean at this point, insert as many full slices (:) to extend the multi-dimensional slice to all dimensions.
<source lang"python">
a2 = np.tile(a[None,:], (2, 1, 1))
print "a2 shape", a2.shape
print "einsum dot product over higher dimensions"
a2_e = np.einsum('...ij,...jk', a2, a2)
print a2_e
</source>

Navigation menu