transform_hsa.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:pynufft 作者: jyhmiinlin 项目源码 文件源码
def selfadjoint(self, gx):
        """
        selfadjoint NUFFT (Teplitz) on the heterogeneous device

        :param gx: The input gpu array, with size=Nd
        :type: reikna gpu array with dtype =numpy.complex64
        :return: gx: The output gpu array, with size=Nd
        :rtype: reikna gpu array with dtype =numpy.complex64
        """                
        self.x_Nd = self.thr.copy_array(gx)
        self._x2xx()
        self._xx2k()
        self._k2y2k()
        self._k2xx()
        self._xx2x()
        gx2 = self.thr.copy_array(self.x_Nd)
        return gx2
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号