Learn · CERN

Talk23 min

Lose Your Loops with Numpy

Thoth Kenneth Gunter · CERN

Watch At CERN

About

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

The talk

  1. Lose Your Loops with Numpy 2016-05-30 · 23 min · CERN's player

Credits and licence

Institution
CERN
Department
Developers@CERN Forum
Speaker
Thoth Kenneth Gunter
Year
2016
Language
English
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Teens profiles and older, judged from what the source says about it. How courses are placed