Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Use Less For-Loops, Use More Vectorization - Improving Code Efficiency

Samuel Chan via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to optimize Python code by replacing for-loops with vectorization techniques in this 19-minute video tutorial. Explore how to refactor numerical problems, particularly those using the Accumulator Pattern, using numpy's vectorized operations implemented in C. Discover how this approach leads to more concise, efficient, and significantly faster code. Gain insights into stopping unnecessarily slow code resulting from habit and familiarity with traditional for-loops. Access a code sample and find a link to a related video on membership tests using set intersections for further learning.

Syllabus

Use less for-loops, use more vectorization

Taught by

Samuel Chan

Reviews

Start your review of Use Less For-Loops, Use More Vectorization - Improving Code Efficiency

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.