mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
750 B
750 B
Function index
Create an index. An Index can store ranges having start, step, and end for multiple dimensions. Matrix.get, Matrix.set, and math.subset accept an Index as input.
Usage: var index = math.index(range1, range2, ...);
Where each range can be any of: An array [start, end] An array [start, end, step] A number null, this will create select the whole dimension
The parameters start, end, and step must be integer numbers.
Parameters
| Parameter | Type | Description |
|---|---|---|
ranges |
...* |
Returns
| Type | Description |
|---|---|
| undefined |