# Lose Your Loops with Numpy

- Institution: CERN
- Department: Developers@CERN Forum
- Speaker: Thoth Kenneth Gunter
- Year: 2016
- Language: English
- Source: [CERN](https://videos.cern.ch/record/3016309)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Teens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

Developing in python is fast. Computation, however, can often be another story. Or at least that is how it may seem. When working with arrays and numerical datasets one can subvert many of python's computational limitations by utilizing numpy. Numpy is python's standard matrix computation library. Many python users only use numpy to store and generate arrays, failing to utilize one of python's most powerful computational tools. By leveraging numpy's ufuncs, aggregation, broadcasting and slicing/masking/indexing functionality one can cut back on slow python loops and increase the speed of their programs by as much as 100x. This talk aims at teaching attendees how to use these tools through toy examples..

0:00:00 Slide 1

0:00:12 Slide 2

0:00:30 Slide 3

0:01:23 Slide 4

0:01:31 Slide 5

0:01:47 Slide 6

0:02:29 Slide 7

0:02:39 Slide 8

0:03:06 Slide 9

0:03:17 Slide 10

0:04:21 Slide 11

0:04:32 Slide 12

0:04:49 Slide 13

0:05:18 Slide 14

0:05:38 Slide 15

0:06:05 Slide 16

0:06:34 Slide 17

0:06:52 Slide 18

0:06:59 Slide 19

0:07:25 Slide 20

0:08:01 Slide 21

0:08:12 Slide 22

0:08:35 Slide 23

0:09:00 Slide 24

0:09:16 Slide 25

0:10:10 Slide 26

0:10:20 Slide 27

0:11:38 Slide 28

0:13:29 Slide 29

0:13:47 Slide 30

0:14:10 Slide 31

0:15:05 Slide 32

0:15:25 Slide 33

0:16:43 Slide 34

0:17:38 Slide 35

0:18:29 Slide 36

0:18:59 Slide 37

0:19:35 Slide 38

## Lectures

1. [Lose Your Loops with Numpy](https://invisiblenetwork.ai/learn/cern/3016309/da97e11fea2a), 23 min (CERN's player)
