mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
41 lines (24 loc) • 665 B
Markdown
Flatten a multi dimensional matrix into a single dimensional matrix.
```js
math.flatten(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | Matrix &
Type | Description
---- | -----------
Matrix &
```js
math.flatten([[1,2], [3,4]]); // returns [1, 2, 3, 4]
```
[](concat.md),
[](resize.md),
[](size.md),
[](squeeze.md)
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->