Linear algebra routines for Scalding.