Is there something like an in-place version of numpy concatenate?

Viewed 24

I'd like to be able to concatenate multiple arrays and have changes in the original arrays reflected in the concatenated version. So the code below should not raise an AssertionError.

arr1 = np.zeros(3)
arr2 = np.zeros(3)
arr3 = np.in_place_concatenate([arr1, arr2])
arr1[0] = 10
assert arr3[0] == 10

Does this concept exist in numpy?

0 Answers
Related