public static int cublasGetVector (int n, Pointer x, int incx, cuDoubleComplex y[], int offsety, int incy) {
    """
	Extended wrapper for arrays of cuDoubleComplex values. Note that this method
	only exists for convenience and compatibility with native C code. It
	is much more efficient to provide a Pointer to a double array that may
	store the complex numbers, where each pair of consecutive numbers in
	the array describes the real- and imaginary part of one complex number.
	
	@see JCublas#cublasGetVector(int, int, Pointer, int, Pointer, int)
    """
        ByteBuffer byteBuffery = ByteBuffer.allocateDirect(y.length * 8 * 2);
        byteBuffery.order(ByteOrder.nativeOrder());
        DoubleBuffer doubleBuffery = byteBuffery.asDoubleBuffer();
        int status = cublasGetVectorNative(n, 16, x, incx, Pointer.to(doubleBuffery).withByteOffset(offsety * 8 * 2), incy);
        if (status == cublasStatus.CUBLAS_STATUS_SUCCESS)
        {
            doubleBuffery.rewind();
            int indexy = offsety;
            for (int i=0; i<n; i++, indexy+=incy)
            {
                y[indexy].x = doubleBuffery.get(indexy*2+0);
                y[indexy].y = doubleBuffery.get(indexy*2+1);
            }
        }
        return checkResult(status);
    }
public static int cublasGetVector (int n, Pointer x, int incx, cuDoubleComplex y[], int offsety, int incy)
    {
        ByteBuffer byteBuffery = ByteBuffer.allocateDirect(y.length * 8 * 2);
        byteBuffery.order(ByteOrder.nativeOrder());
        DoubleBuffer doubleBuffery = byteBuffery.asDoubleBuffer();
        int status = cublasGetVectorNative(n, 16, x, incx, Pointer.to(doubleBuffery).withByteOffset(offsety * 8 * 2), incy);
        if (status == cublasStatus.CUBLAS_STATUS_SUCCESS)
        {
            doubleBuffery.rewind();
            int indexy = offsety;
            for (int i=0; i<n; i++, indexy+=incy)
            {
                y[indexy].x = doubleBuffery.get(indexy*2+0);
                y[indexy].y = doubleBuffery.get(indexy*2+1);
            }
        }
        return checkResult(status);
    }
public static int cublasGetVector ( int n , Pointer x , int incx , cuDoubleComplex y [ ] , int offsety , int incy ) { ByteBuffer byteBuffery = ByteBuffer . allocateDirect ( y . length * 8 * 2 ) ; byteBuffery . order ( ByteOrder . nativeOrder ( ) ) ; DoubleBuffer doubleBuffery = byteBuffery . asDoubleBuffer ( ) ; int status = cublasGetVectorNative ( n , 16 , x , incx , Pointer . to ( doubleBuffery ) . withByteOffset ( offsety * 8 * 2 ) , incy ) ; if ( status == cublasStatus . CUBLAS_STATUS_SUCCESS ) { doubleBuffery . rewind ( ) ; int indexy = offsety ; for ( int i = 0 ; i < n ; i ++ , indexy += incy ) { y [ indexy ] . x = doubleBuffery . get ( indexy * 2 + 0 ) ; y [ indexy ] . y = doubleBuffery . get ( indexy * 2 + 1 ) ; } } return checkResult ( status ) ; }
Extended wrapper for arrays of cuDoubleComplex values. Note that this method
only exists for convenience and compatibility with native C code. It
is much more efficient to provide a Pointer to a double array that may
store the complex numbers, where each pair of consecutive numbers in
the array describes the real- and imaginary part of one complex number.

@see JCublas#cublasGetVector(int, int, Pointer, int, Pointer, int)
Extended wrapper for arrays of cuDoubleComplex values . Note that this method only exists for convenience and compatibility with native C code . It is much more efficient to provide a Pointer to a double array that may store the complex numbers where each pair of consecutive numbers in the array describes the real - and imaginary part of one complex number .