(mat, writeable=True, modified=None)
| 52 | |
| 53 | |
| 54 | def assert_equal_tensor_ref(mat, writeable=True, modified=None): |
| 55 | assert mat.flags.writeable == writeable |
| 56 | |
| 57 | copy = np.array(tensor_ref) |
| 58 | if modified is not None: |
| 59 | copy[indices] = modified |
| 60 | |
| 61 | np.testing.assert_array_equal(mat, copy) |
| 62 | |
| 63 | |
| 64 | @pytest.mark.parametrize("m", submodules) |
no test coverage detected