Why is ldiv! not updating the first argument when it is written in permutated format?

I’ll reiterate that you should absolutely just use

a = view(s,[1,3])
a .= [100,200]

But if you insist on using an array of Ref then you can write

a = [Ref(s,1),Ref(s,3)]
setindex!.(a,[100,200])

PLEASE DO NOT DO THIS. The syntax is awful because this is not how you should do this.

1 Like

Yes, I just wanted to get the concept. I may share here my updated MWE for some recommendations.
Many thanks again for your great support.