1, the use of np. Dot () method:
Define two arrays:
x=np. Array ([[1, 2, 3], [4 and 6]])
y=np. Array ([[1, 2], [4, 5], [7, 8]])
The use of np. Dot () method:
np. Dot (x, y)
2, the use of an array. The dot (array)
Or the two arrays: x, y
Use the dot () method
:
In simple terms, is to use an array of x multiplier y winning to each element, and then add
That is:
[[the first line of the first column first line + + * * the second column]
[the second line + + * * the first column of the second line of the second column]]
note: matrix dot product is the column number of the matrix A is equal to the condition of matrix B, the number of rows to the dot product calculation
CodePudding user response:
Studied the