We present Sketch 'n Solve, an open-source Python package that implements efficient randomized numerical linear algebra (RandNLA) techniques for solving large-scale least squares problems. While sketch-and-solve algorithms have demonstrated theoretical promise, their practical adoption has been limited by the lack of robust, user-friendly implementations. Our package addresses this gap by providing an optimized implementation built on NumPy and SciPy, featuring both dense and sparse sketching operators with a clean API. Through extensive benchmarking, we demonstrate that our implementation achieves up to 50x speedup over traditional LSQR while maintaining high accuracy, even for ill-conditioned matrices. The package shows particular promise for applications in machine learning optimization, signal processing, and scientific computing.
A Bootstrap Method for Error Estimation in Randomized Matrix Multiplication
Department of Statistics University of California at Davis(加州大学戴维斯分校统计学系);Department of Computer Science Stevens Institute of Technology(史蒂文斯理工学院计算机科学系);International Computer Science Institute and Department of Statistics University of California at Berkeley(伯克利大学国际计算机科学研究所和统计学系)
Error Estimation for Randomized Least-Squares Algorithms via the Bootstrap
University of California at Davis(加州大学戴维斯分校);Stevens Institute of Technology(史蒂文斯理工学院);International Computer Science Institute(国际计算机科学研究所);University of California at Berkeley(加州大学伯克利分校)