Test that we can define float lists inside kernel functions.
()
| 103 | |
| 104 | |
| 105 | def test_float64_definition(): |
| 106 | """Test that we can define float lists inside kernel functions.""" |
| 107 | |
| 108 | f = [np.float64(1.), np.float64(2)] |
| 109 | |
| 110 | # Define a list of float inside a kernel |
| 111 | @cudaq.kernel |
| 112 | def float_vec_definition(i: int) -> np.float64: |
| 113 | return [np.float64(1.), np.float64(2)][i] |
| 114 | |
| 115 | for i in range(len(f)): |
| 116 | assert is_close(f[i], float_vec_definition(i)) |
| 117 | |
| 118 | |
| 119 | def test_float64_use(): |
nothing calls this directly
no test coverage detected