Created
August 16, 2021 00:10
-
-
Save aleozlx/742eb7392595711c80da882a547794f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C = np.zeros((3, 4), dtype=int) | |
for k in range(A.shape[1]): | |
C += np.outer(A[:, k], B[k, :]) | |
print("C =\n", C) | |
""" | |
OUTPUT | |
============= | |
C = | |
[[42 29 26 21] | |
[22 14 16 10] | |
[11 9 4 5]] | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment