parameters: (self, d, default=np.complex64)
return_statement: return np.dtype(mapping.get(dt, default))
docstring: Find the complex numpy dtype corresponding to a real dtype.
              args:
                  d : The real-valued dtype to convert to complex.
                  default : The default complex target type, if `d` does not match a known dtype
              return : The complex dtype
docstring_summary: Find the complex numpy dtype corresponding to a real dtype.
              args:
                  d : The real-valued dtype to convert to complex.
                  default : The default complex target type, if `d` does not match a known dtype
              return : The complex dtype
docstring_tokens: Find the complex numpy dtype corresponding to a real dtype . args : d : The real - valued dtype to convert to complex . default : The default complex target type if d does not match a known dtype return : The complex dtype
function: def dtype_r2c(self, d, default=np.complex64):
          '''
              Find the complex numpy dtype corresponding to a real dtype.
              args:
                  d : The real-valued dtype to convert to complex.
                  default : The default complex target type, if `d` does not match a known dtype
              return : The complex dtype
          '''
          mapping = {
              np.dtype(np.float32): np.complex64,
              np.dtype(np.float64): np.complex128,
          }
          dt = np.dtype(d)
          if dt.kind == "c":
              return dt
          return np.dtype(mapping.get(dt, default))
function_tokens: def dtype_r2c ( self , d , default = np . complex64 ) : mapping = { np . dtype ( np . float32 ) : np . complex64 , np . dtype ( np . float64 ) : np . complex128 , } dt = np . dtype ( d ) if dt . kind == "c" : return dt return np . dtype ( mapping . get ( dt , default ) )