python - multiplication of 3-dimensional matrix in numpy -


I think I had asked yesterday. What I really want is to change the two 2x2xN matrix a and b so that

  c [: For example, if I have a matrix I <= p>    pre>  A = N.P. range (12) .Reship (2, 2, 3 )   

How can I get C = A x A Define the definition above? Is there an underlying task to do this?


In addition, if I type with A (size 2x2xN) with B (in size of 2x2x1, N) , i Try to use div>

numpy.einsum , it's a little bit in the learning curve, but You have to give an example that you want to get started here. Import

  like np a = np.random.random ((2, 2, 3)) B = np.random.random ((2, 2, 3)) C1 = NP (3,): (1,,,,,,,,,,, ) C2 = N.P.EnSam ('Aijan, JNAN- & gt; Icon', A, B) NP Oculus (C1, C2)    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -