val a = mutableListOf<List<Int>>()
for loop
multikArray = function()
a.add(multikArray.toList())
val b = mk.ndarray(a)
But It would be nice if I could do :
Copy code
val a = mk.ndarray(mk[])
for loop
multikArray = function()
a.cat(multikArray)
Alexandre Brown
02/27/2023, 5:25 PM
Ok turns out I found a way to do it.
p
Pavel Gorgulov
02/28/2023, 8:19 PM
The arrays themselves in multik are immutable. There are several operations that return “view”, but for any operation where consistency is important, the array will be copied