add matrix-multiplication example to notebook

This commit is contained in:
Joey Freund
2016-10-01 08:46:19 -04:00
parent 5bd4dca9e2
commit 1f2c4ae683

View File

@@ -477,7 +477,10 @@
"outputs": [],
"source": [
"Z = np.dot(np.ones((5,3)), np.ones((3,2)))\n",
"print(Z)"
"print(Z)",
"\n\n",
"# Alternative solution, in Python 3.5 and above\n",
"Z = np.ones((5,3)) @ np.ones((3,2))"
]
},
{