@@ -4758,7 +4758,7 @@ def tile_scatter_add_dispatch_func(input_types, return_type, args):
47584758 .. code-block:: python
47594759
47604760 @wp.kernel
4761- def histogram(data: wp.array(dtype= float) , out: wp.array(dtype= float) ):
4761+ def histogram(data: wp.array[ float] , out: wp.array[ float] ):
47624762
47634763 bins = wp.tile_zeros(dtype=float, shape=4, storage="shared")
47644764 i = wp.tid()
@@ -7018,7 +7018,7 @@ def tile_stack_dispatch_func(arg_types, return_type, arg_values):
70187018 CAP = wp.constant(8)
70197019
70207020 @wp.kernel
7021- def compact_kernel(data: wp.array(dtype= int) , out: wp.array(dtype= int) , out_count: wp.array(dtype= int) ):
7021+ def compact_kernel(data: wp.array[ int] , out: wp.array[ int] , out_count: wp.array[ int] ):
70227022 _i, j = wp.tid()
70237023 s = wp.tile_stack(capacity=CAP, dtype=int)
70247024
@@ -7098,7 +7098,7 @@ def tile_stack_push_dispatch_func(arg_types, return_type, arg_values):
70987098 CAP = wp.constant(8)
70997099
71007100 @wp.kernel
7101- def push_kernel(out_idx: wp.array(dtype= int) ):
7101+ def push_kernel(out_idx: wp.array[ int] ):
71027102 _i, j = wp.tid()
71037103 s = wp.tile_stack(capacity=CAP, dtype=int)
71047104 idx = wp.tile_stack_push(s, j * 10, j < 4)
@@ -7166,7 +7166,7 @@ def tile_stack_pop_dispatch_func(arg_types, return_type, arg_values):
71667166 CAP = wp.constant(8)
71677167
71687168 @wp.kernel
7169- def pop_kernel(out: wp.array(dtype= int) ):
7169+ def pop_kernel(out: wp.array[ int] ):
71707170 _i, j = wp.tid()
71717171 s = wp.tile_stack(capacity=CAP, dtype=int)
71727172 wp.tile_stack_push(s, j * 10, j < 4)
@@ -7226,7 +7226,7 @@ def tile_stack_clear_dispatch_func(arg_types, return_type, arg_values):
72267226 CAP = wp.constant(8)
72277227
72287228 @wp.kernel
7229- def clear_kernel(before: wp.array(dtype= int) , after: wp.array(dtype= int) ):
7229+ def clear_kernel(before: wp.array[ int] , after: wp.array[ int] ):
72307230 _i, j = wp.tid()
72317231 s = wp.tile_stack(capacity=CAP, dtype=int)
72327232 wp.tile_stack_push(s, j, True)
@@ -7297,7 +7297,7 @@ def tile_stack_count_dispatch_func(arg_types, return_type, arg_values):
72977297 CAP = wp.constant(8)
72987298
72997299 @wp.kernel
7300- def count_kernel(out_count: wp.array(dtype= int) ):
7300+ def count_kernel(out_count: wp.array[ int] ):
73017301 _i, j = wp.tid()
73027302 s = wp.tile_stack(capacity=CAP, dtype=int)
73037303 wp.tile_stack_push(s, j, j % 2 == 0)
0 commit comments