28 lines
750 B
Markdown

# 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
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->