Latest recipes tagged "infix" Code RecipesInfix operators for numpy arrays (Python) 2010-06-07T05:57:07-07:00John Schulman <p style="color: grey"> Python recipe 577201 by <a href="/recipes/users/4171677/">John Schulman</a> (<a href="/recipes/tags/array/">array</a>, <a href="/recipes/tags/infix/">infix</a>, <a href="/recipes/tags/matrix/">matrix</a>, <a href="/recipes/tags/multiplication/">multiplication</a>, <a href="/recipes/tags/numpy/">numpy</a>). Revision 3. </p> <p>This recipe adapts the infix operator trick from <a href="" rel="nofollow"></a> to give the appropriate behavior with numpy arrays, so you can write A *dot* B for,B)</p> <p>UPDATE A solution to the dot problem was recently added to the numpy trunk: the dot method was added to the ndarray class so you can write See <a href="" rel="nofollow"></a></p>