def curfft(inp, norm=None):
 s = inp.shape[1:]
 cond_norm = _unitary(norm)
 scaling = 1
 if (cond_norm == 'ortho'):
  scaling = T.sqrt(s.prod().astype('float32'))
 return (curfft_op(inp, s) / scaling)

def curfft ( inp , norm = None ) : s = inp . shape [ 1 : ] cond_norm = _unitary ( norm ) scaling = 1 if ( cond_norm == 'ortho' ) : scaling = T . sqrt ( s . prod ( ) . astype ( 'float32' ) ) return ( curfft_op ( inp , s ) / scaling )
performs the fast fourier transform of a real-valued input on the gpu .