src/main/java/org/g_node/nix/internal/VectorUtils.java
/**
     * Converts {@link DoublePointer} to double array.
     *
     * @param dp {@link DoublePointer} pointer to be converted
     * @return array of doubles
     */
Converts  DoublePointer to double array.
@param dp  DoublePointer pointer to be converted
@return array of doubles
Converts DoublePointer to double array . @param dp DoublePointer pointer to be converted @return array of doubles
public static double[] convertPointerToArray(DoublePointer dp) {
        double[] arr = null;
        if (dp != null) {
            arr = new double[dp.capacity()];
            for (int i = 0; i < dp.capacity(); i++) {
                arr[i] = dp.get(i);
            }
        }
        return arr;
    }
public static double [ ] convertPointerToArray ( DoublePointer dp ) { double [ ] arr = null ; if ( dp != null ) { arr = new double [ dp . capacity ( ) ] ; for ( int i = 0 ; i < dp . capacity ( ) ; i ++ ) { arr [ i ] = dp . get ( i ) ; } } return arr ; }
Converts {@link DoublePointer} to double array.
Converts { @link DoublePointer } to double array .