public static double cublasDasum(int n, Pointer x, int incx) {
    """
	<pre>
	double
	cublasDasum (int n, const double *x, int incx)
	
	computes the sum of the absolute values of the elements of double
	precision vector x; that is, the result is the sum from i = 0 to n - 1 of
	abs(x[1 + i * incx]).
	
	Input
	-----
	n      number of elements in input vector
	x      double-precision vector with n elements
	incx   storage spacing between elements of x
	
	Output
	------
	returns the double-precision sum of absolute values
	(0 if n <= 0 or incx <= 0, or if an error occurs)
	
	Reference: http://www.netlib.org/blas/dasum.f
	
	Error status for this function can be retrieved via cublasGetError().
	
	Error Status
	------------
	CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized
	CUBLAS_STATUS_ARCH_MISMATCH    if invoked on device without DP support
	CUBLAS_STATUS_EXECUTION_FAILED if function failed to launch on GPU
	</pre>
    """
        double result = cublasDasumNative(n, x, incx);
        checkResultBLAS();
        return result;
    }
public static double cublasDasum(int n, Pointer x, int incx)
    {
        double result = cublasDasumNative(n, x, incx);
        checkResultBLAS();
        return result;
    }
public static double cublasDasum ( int n , Pointer x , int incx ) { double result = cublasDasumNative ( n , x , incx ) ; checkResultBLAS ( ) ; return result ; }
<pre>
double
cublasDasum (int n, const double *x, int incx)

computes the sum of the absolute values of the elements of double
precision vector x; that is, the result is the sum from i = 0 to n - 1 of
abs(x[1 + i * incx]).

Input
-----
n      number of elements in input vector
x      double-precision vector with n elements
incx   storage spacing between elements of x

Output
------
returns the double-precision sum of absolute values
(0 if n <= 0 or incx <= 0, or if an error occurs)

Reference: http://www.netlib.org/blas/dasum.f

Error status for this function can be retrieved via cublasGetError().

Error Status
------------
CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized
CUBLAS_STATUS_ARCH_MISMATCH    if invoked on device without DP support
CUBLAS_STATUS_EXECUTION_FAILED if function failed to launch on GPU
</pre>
<pre > double cublasDasum ( int n const double * x int incx )