(funcname, clss, compute_capability)
return globals()["_get_" + funcname](clss, compute_capability)
Helper function that converts string function names to function calls
Helper function that converts string function names to function calls
Helper function that converts string function names to function calls
def map_string2func(funcname, clss, compute_capability):
    """
    Helper function that converts string function names to function calls
    """
    if "_get_" + funcname not in globals():
        raise AttributeError("kernel type '" + funcname + "' not understood")
    return globals()["_get_" + funcname](clss, compute_capability)
def map_string2func ( funcname , clss , compute_capability ) : if "_get_" + funcname not in globals ( ) : raise AttributeError ( "kernel type '" + funcname + "' not understood" ) return globals ( ) [ "_get_" + funcname ] ( clss , compute_capability )