# 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`](linalg-reshape.md) with the total [`linalg:size`](linalg-size.md) as the target shape; a vector input yields a fresh copy of itself.

```lisp
(linalg:flatten #2A((1 2) (3 4))) ; => #d(1.0 2.0 3.0 4.0)
```
