#NEWLINE# def cufftGetSize2d( plan , nx , ny , fft_type ) : #NEWLINE# #INDENT# '\n    Return more accurate estimate of work area size required for 2D FFT,\n    taking into account any plan settings that may have been made.\n\n    References\n    ----------\n    `cufftGetSize2d <http://docs.nvidia.com/cuda/cufft/#function-cufftgetsize2d>`_\n    ' #NEWLINE# worksize = _types . worksize ( ) #NEWLINE# status = _libcufft . cufftGetSize2d ( plan , nx , worksize , fft_type , ctypes . byref ( worksize ) ) #NEWLINE# cufftCheckStatus ( status ) #NEWLINE# return worksize . value