Home
last modified time | relevance | path

Searched refs:mutate_data (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_numpy_array.py91 m.mutate_data,
137 (m.mutate_data, ()),
147 assert all(m.mutate_data(arr).ravel() == [2, 4, 6, 8, 10, 12])
148 assert all(m.mutate_data(arr).ravel() == [4, 8, 12, 16, 20, 24])
149 assert all(m.mutate_data(arr, 1).ravel() == [4, 8, 12, 32, 40, 48])
150 assert all(m.mutate_data(arr, 0, 1).ravel() == [4, 16, 24, 64, 80, 96])
151 assert all(m.mutate_data(arr, 1, 2).ravel() == [4, 16, 24, 64, 80, 192])
166 m.mutate_data,
Dtest_numpy_array.cpp90 template<typename... Ix> arr& mutate_data(arr& a, Ix... index) { in mutate_data() function
180 def_index_fn(mutate_data, arr&); in TEST_SUBMODULE()