def c2f(r, i, ctype_name):
 ftype = c2f_dict[ctype_name]
 return np.typeDict[ctype_name]((ftype(r) + (1j * ftype(i))))

def c2f ( r , i , ctype_name ) : ftype = c2f_dict [ ctype_name ] return np . typeDict [ ctype_name ] ( ( ftype ( r ) + ( 1j * ftype ( i ) ) ) )
convert strings to complex number instance with specified numpy type .