Module indexing

Module indexing 

Source
Expand description

Matrix indexing and slicing operations

Implements language-style matrix indexing and access patterns.

Functionsยง

matrix_get_col
Get a column from a matrix
matrix_get_element
Get a single element from a matrix (1-based indexing like language)
matrix_get_row
Get a row from a matrix
matrix_set_element
Set a single element in a matrix (1-based indexing like language)
perform_indexing
Array indexing operation (used by all interpreters/compilers) In MATLAB, indexing is 1-based and supports: