Skip to content

Commit 1f2c4ae

Browse files
committed
add matrix-multiplication example to notebook
1 parent 5bd4dca commit 1f2c4ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

100 Numpy exercises.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,10 @@
477477
"outputs": [],
478478
"source": [
479479
"Z = np.dot(np.ones((5,3)), np.ones((3,2)))\n",
480-
"print(Z)"
480+
"print(Z)",
481+
"\n\n",
482+
"# Alternative solution, in Python 3.5 and above\n",
483+
"Z = np.ones((5,3)) @ np.ones((3,2))"
481484
]
482485
},
483486
{

0 commit comments

Comments
 (0)