lml-main
Version:
This is now a mono repository published into many standalone packages.
44 lines (27 loc) • 840 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Calculate the size of a matrix or scalar.
```js
math.size(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | boolean &
Type | Description
---- | -----------
Array &
```js
math.size(2.3); // returns []
math.size('hello world'); // returns [11]
var A = [[1, 2, 3], [4, 5, 6]];
math.size(A); // returns [2, 3]
math.size(math.range(1,6)); // returns [5]
```
[](resize.md),
[](squeeze.md),
[](subset.md)