class SingularValueDecomposition {

    public int getRank() {
        int r = 0;
        for (int i = 0; i < singularValues.length; i++) {
            if (singularValues[i] > tol) {
                r++;
            }
        }
        return r;
    }

    public  SingularValueDecomposition(final RealMatrix matrix);

}