Powell’s Dogleg for Least Squares Minimization from Scratch

I’ve recently released the Rust dogleg crate and I thought I’d document everything that’s needed to implement a least-squares Dogleg optimizer from scratch. You probably don’t want to do that, but if you did, then here’s everything you need to know.