#NEWLINE# def test_cublasIzamin( self ) : #NEWLINE# #INDENT# x = ( np . random . rand ( 5 ) + ( 1j * np . random . rand ( 5 ) ) ) . astype ( np . complex128 ) #NEWLINE# x_gpu = gpuarray . to_gpu ( x ) #NEWLINE# result = cublas . cublasIzamin ( self . cublas_handle , x_gpu . size , x_gpu . gpudata , 1 ) #NEWLINE# assert np . allclose ( result , np . argmin ( ( np . abs ( x . real ) + np . abs ( x . imag ) ) ) )