sisl_toolbox.btd.BlockArrayIndexer

class sisl_toolbox.btd.BlockArrayIndexer

Bases: object

Indexer of a BlockArray using block indices

BI[i, j, ...] is the block of the indices in block i along the first axis, block j along the second axis, etc. Undefined blocks are returned as new zero arrays (which are not stored in the array). Assigning a block stores it (no copy) if it has the data-type and memory order of the array, otherwise it is converted.