Faster (and probably less memory) to do:
```
s = linalg.svd(gg, compute_uv=False)
```