variances Sample code for variance calculation using different methods e.g. without mean computation or online (Wellford algorithm) loops Comparison of two nested loops VS one loop over 2D coordinates and linear index