Skip to content

reshape

builtin · libnexusinterp/corefcn/data-proprietary.cc

: b = reshape (a, m, n, …)
: b = reshape (a, [m n …])
: b = reshape (a, [], n, …)

Change the dimensions of a without changing the elements, which keep their column-major order. At most one size may be given as []; it is computed from the number of elements.