Compressed linear algebra for large-scale machine learning