Skip to content

Commit 02064a9

Browse files
author
craigsdennis
committed
Adds ufunc and broadcasting reflection
1 parent e1961a4 commit 02064a9

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

Introduction to NumPy.ipynb

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,17 @@
15551555
"orders.dot(prices)"
15561556
]
15571557
},
1558+
{
1559+
"cell_type": "markdown",
1560+
"metadata": {},
1561+
"source": [
1562+
"## Universal Functions\n",
1563+
"* [ufuncs](https://docs.scipy.org/doc/numpy/reference/ufuncs.html) are commonly needed vectorized functions\n",
1564+
" * Vectorized functions allow you to operate element by element without using a loop\n",
1565+
"* The standard math and comparison operations have all been overloaded so that they can make use of vectorization\n",
1566+
"* Values can be [broadcasted](https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html), or stretched to be applied to the ufuncs."
1567+
]
1568+
},
15581569
{
15591570
"cell_type": "code",
15601571
"execution_count": 74,
@@ -1813,20 +1824,6 @@
18131824
"outputs": [],
18141825
"source": []
18151826
},
1816-
{
1817-
"cell_type": "code",
1818-
"execution_count": null,
1819-
"metadata": {},
1820-
"outputs": [],
1821-
"source": []
1822-
},
1823-
{
1824-
"cell_type": "code",
1825-
"execution_count": null,
1826-
"metadata": {},
1827-
"outputs": [],
1828-
"source": []
1829-
},
18301827
{
18311828
"cell_type": "code",
18321829
"execution_count": null,

0 commit comments

Comments
 (0)