python - multiplication of 3-dimensional matrix in numpy -
I think I had asked yesterday. What I really want is to change the two How can I get In addition, if I type with 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 )
C = A x A Define the definition above? Is there an underlying task to do this?
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
Post a Comment