public double[] rowMeans() {
        double[] x = rowSums();

        for (int i = 0; i < m; i++) {
            x[i] /= n;
        }

        return x;
    }
@Test
    public void testRowMeans() {
        System.out.println("rowMeans");
        double[][] A = {
                { 0.7220180,  0.07121225, 0.6881997f},
                {-0.2648886, -0.89044952, 0.3700456f},
                {-0.6391588,  0.44947578, 0.6240573f}
        };
        double[] r = {0.4938100, -0.2617642, 0.1447914f};

        double[] result = Matrix.of(A).rowMeans();
        for (int i = 0; i < r.length; i++) {
            assertEquals(result[i], r[i], 1E-7);
        }
    }