Linear algebra for spectral clustering