예제 #1
0
 def ndarray_floating_point_divide(arg_type, ret_type):
     register_function("div", (
         arg_type,
         tndarray(arg_type, NatVariable()),
     ), tndarray(ret_type, NatVariable()))
     register_function("div", (tndarray(arg_type, NatVariable()), arg_type),
                       tndarray(ret_type, NatVariable()))
     register_function("div", (tndarray(
         arg_type, NatVariable()), tndarray(arg_type, NatVariable())),
                       tndarray(ret_type, NatVariable()))
예제 #2
0
파일: type_parsing.py 프로젝트: zscu/hail
 def visit_nat_variable(self, node, visited_children):
     return NatVariable()