What is happening behind the scenes in julia's view function? a[3, :] = view(a, 1, :) vs a[3, :] = a[1, :]

后端 未结 0 807
独厮守ぢ
独厮守ぢ 2021-01-31 21:36

I thought the view function worked something like a refererence in c++, basically both variables are pointing to the same piece of memory.

Why does this work:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题