I’m trying to reshape in place using:
using Random
Random.seed!(1)
A = rand(Int8, 4)
show(A)
reshape(A, (2, 2))
println("\n")
show(A)
println("\n")
Which should change the algorithm which maps the array into a matrix one, at least following reshape » Julia Functions and Convert array into matrix in place - #4 by anon74562486
However it prints the same object.
If I instead write:
A = reshape(A, (2, 2))
It works, but I don’t know if it just allocates a different A, discarding the previous one