(rontolisp) docs
← Functions

linalg:flatten

(linalg:flatten array)

Returns the elements of an array as a fresh rank-1 vector, in row-major order. It is equivalent to linalg:reshape with the total linalg:size as the target shape; a vector input yields a fresh copy of itself.