Skip to content

Commit 28c5670

Browse files
committed
Switch to markdown only
1 parent 58c2320 commit 28c5670

File tree

4 files changed

+1194
-1184
lines changed

4 files changed

+1194
-1184
lines changed

100 Numpy exercises.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2193,13 +2193,16 @@
21932193
"cell_type": "code",
21942194
"execution_count": null,
21952195
"metadata": {
2196-
"collapsed": true
2196+
"collapsed": false
21972197
},
21982198
"outputs": [],
21992199
"source": [
22002200
"# Author: Alex Riley\n",
22012201
"# Make sure to read: http://ajcr.net/Basic-guide-to-einsum/\n",
22022202
"\n",
2203+
"A = np.random.uniform(0,1,10)\n",
2204+
"B = np.random.uniform(0,1,10)\n",
2205+
"\n",
22032206
"np.einsum('i->', A) # np.sum(A)\n",
22042207
"np.einsum('i,i->i', A, B) # A * B\n",
22052208
"np.einsum('i,i', A, B) # np.inner(A, B)\n",

0 commit comments

Comments
 (0)