``` # Program to multiply two matrices using nested loops # 3x3 matrix X = [[12,7,3], [4 ,5,6], [7 ,8,9]] # 3x4 matrix Y = [[5,8,1,2], [6,7,3,0], [4,5,9,1]] # result is 3x4 result = [[0,0,0,0], [0,0,0,0], [0,0,0,0]] # iterate through rows of X for i in range(len(X)): # iterate through columns of Y for j in range(len(Y[0])): # iterate through rows of Y for k in range(len(Y)): result[i][j] += X[i][k] * Y[k][j] for r in result: print(r) ```
author | python-dev |
---|---|
permlink | python-program-to-multiply-two-matrices |
category | python-dev |
json_metadata | {"tags":["python-dev"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2020-03-22 11:40:12 |
last_update | 2020-03-22 11:40:12 |
depth | 0 |
children | 1 |
last_payout | 2020-03-29 11:40:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.238 HBD |
curator_payout_value | 0.144 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 514 |
author_reputation | 5,457,648,648,750 |
root_title | "Python Program to Multiply Two Matrices" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,537,984 |
net_rshares | 1,516,520,380,744 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
june0620 | 0 | 222,269,027,421 | 20% | ||
xiguang | 0 | 305,147,948,195 | 100% | ||
ancient-light | 0 | 23,510,489,062 | 100% | ||
crypto.income | 0 | 965,592,916,066 | 100% |
[Source](https://www.codespeedy.com/multiplication-of-two-matrices-using-numpy-python/) [Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator. Fraud is discouraged by the community and may result in the account being Blacklisted.
author | steemcleaners |
---|---|
permlink | q7ltrf |
category | python-dev |
json_metadata | {"links":["https://www.codespeedy.com/multiplication-of-two-matrices-using-numpy-python/","http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/"],"app":"hiveblog/0.1"} |
created | 2020-03-22 16:57:15 |
last_update | 2020-03-22 16:57:15 |
depth | 1 |
children | 0 |
last_payout | 2020-03-29 16:57:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.330 HBD |
curator_payout_value | 0.330 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 456 |
author_reputation | 2,789,224,428,782,668 |
root_title | "Python Program to Multiply Two Matrices" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,541,608 |
net_rshares | 2,009,446,288,726 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
adm | 0 | 2,009,446,288,726 | 9.5% |