0

I do not know if there is already an standard name for this concept, so do not hesitate to point me to the right direction. I was looking on the internet but the "sync" and "mirror" concepts are different from what I am looking for:

I want to find a way to syncrhonise positions and areas between arrays. See the following diagram:

Arrays diagram

Here we can see 3 different arrays stored in 3 different variables (x, y, z). Each array has 9 positions. I want to create them in a way that if value in x2 is changed, it is also changed in z4. The same applies for x7:8<->y8:7:-1.

From the bases I think it is not possible, as arrays only store pointers and those pointers are directed to the python ints/floats/etc. It might be possible if using custom objects, but memory wise is probably not wise as every possition would require an individual object.

BorjaEst
  • 390
  • 2
  • 11
  • Sorry, I don't think this is possible [this answer](https://stackoverflow.com/questions/7869095/concatenate-numpy-arrays-without-copying) explains that arrays must be contiguous in memory. – Roy Smart Feb 06 '23 at 20:14

0 Answers0