tensorly.index

index()

Convenience class used as a an array, to be used with index_update

Parameters:
indicesindices for indexing

See also

index_update

updating the values of a tensor for specified indices

Examples

Usage: index[indices], e.g.

index[1:3, 4:5, :None]