public static double[][] getReal(ComplexNumber[][] cn) {
        double[][] n = new double[cn.length][cn[0].length];
        for (int i = 0; i < n.length; i++) {
            for (int j = 0; j < n[0].length; j++) {
                n[i][j] = cn[i][j].real;
            }
        }
        return n;
    }
public static double [ ] [ ] getReal ( ComplexNumber [ ] [ ] cn ) { double [ ] [ ] n = new double [ cn . length ] [ cn [ 0 ] . length ] ; for ( int i = 0 ; i < n . length ; i ++ ) { for ( int j = 0 ; j < n [ 0 ] . length ; j ++ ) { n [ i ] [ j ] = cn [ i ] [ j ] . real ; } } return n ; }
Get real part from the complex numbers.

@param cn Complex numbers.
@return Real part.