Skip to main content

Module indexing

Module indexing 

Source
Expand description

Matrix indexing and slicing operations

Implements language-style tensor indexing and access patterns.

Functionsยง

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