RSN - Speed up python with Numpy
Event box
Speeding up calculations using NumPy
Have you ever had to leave your laptop in front of a fan while your Python code churns away at a problem? Are you not sure how to make it run faster but everyone else seems to be able to do it? Do you just run into words like “profiler” on StackExchange? This tutorial will look at some simple computational problems and how to speed them up. I’ll focus on using the NumPy library which is a very fast array and mathematical library for Python. By breaking our problem into simple operations we can “vectorise” it and NumPy can do the calculations 10s of times faster than bare Python code. In this tutorial, we’ll look at how to vectorise a number of computational problems.
This is an interactive workshop, so attendees will need to bring their own laptop.
This tutorial will be taught by Dr. Chris Arridge who is a Reader in Planetary Physics in the Physics Department.
NOTE: This is in the CALC rooms in FST, but this maybe subject to change due to potential building works, if so a new location will be emailed out.
Non-attendance
Accessibility Statement |
Legal Notice |
Freedom of Information |
Cookies Notice |
Staff & Student Privacy Notice |
External User Privacy Notice |
©
2022 Lancaster University. All rights reserved.
Privacy Statement
To use this platform, the system writes one or more cookies in your browser. These cookies are not shared with any third parties. In addition, your IP address and browser information is stored in server logs and used to generate anonymized usage statistics. Your institution uses these statistics to gauge the use of library content, and the information is not shared with any third parties.