You can use:

```
from ..utils.sparsefuncs import mean_variance_axis0

...

_, full_var = mean_variance_axis0(X)
full_var = full_var.sum()
```

to also spare some memory.