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

YouTube

Writing a Crate for Kahan Summation in Rust - Meetup Talk

Rust via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the implementation of a generic Kahan summer in Rust and its extension to all iterators over floats in this talk from the first Rust KW Meetup. Dive into the intricacies of floating-point numbers, precision, and the Kahan summation technique. Follow the speaker's journey from a simple implementation to a feature-rich crate, covering topics such as customizing operators, implementing methods for traits, and abstracting over borrowing. Learn how to replace the standard iterator sum with a more precise Kahan sum method, applicable to various float types. Gain insights into the challenges and solutions encountered during the development process, and discover how to create a robust and efficient crate for numerical computations in Rust.

Syllabus

Intro
Floating point numbers are like scientific notation
The precision depends on the type of float
Kahan summation example
Starting Simple
Feature Checklist
Missing Features
Customizing operators
Low-hanging fruit
Implementing Methods for a Trait
Replacing std::iter::Sum
Generic over floats
Abstracting over Borrowing
Finishing Touches

Taught by

Rust

Reviews

Start your review of Writing a Crate for Kahan Summation in Rust - Meetup Talk

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.