Expand description
Utility functions for working with matrices.
Functionsยง
- enumerate_
index_ union_ indices - See
enumerate_indices. This function zips the two given lists of index domains, performs a union on each pair, and returns an enumerating iterator over the new list of domains. - enumerate_
indices - For some index domains, returns a list containing each of the possible indices.
- flat_
index_ to_ full_ index - flatten
- Flattens a multi-dimensional matrix literal into a one-dimensional slice of its elements.
- flatten_
enumerate - Flattens a multi-dimensional matrix literal into an iterator over (indices,element).
- index_
domains - Gets the index domains for a matrix literal.
- num_
elements - Returns the number of possible elements indexable by the given index domains.