Skip to content

Commit 1be96b4

Browse files
alexfiklinducer
authored andcommitted
feat: use actx.np.zeros
1 parent d92c919 commit 1be96b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/test_arraycontext.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def test_array_context_csr_matmul(actx_factory: ArrayContextFactory):
676676
momentum=obj_array.new_1d([x] * 3),
677677
enthalpy=x)
678678

679-
elem_values = actx.zeros((n//2,), dtype=np.float64) + 1.
679+
elem_values = actx.np.zeros((n//2,), dtype=np.float64) + 1.
680680
elem_col_indices = actx.from_numpy(2*np.arange(n//2, dtype=np.int32))
681681
row_starts = actx.from_numpy(np.arange(n//2 + 1, dtype=np.int32))
682682

0 commit comments

Comments
 (0)