Particularly when doing batched things, we often want to modify only part of the local stack of a DSBSparse matrix, so something like
dsbsparse.blocks[0, 0][:3] = arr
Unfortunately this will not work, since the block indexer must return a new piece of memory. We should switch to some other way of modifying a specific stack slice. The easiest way of doing this would be to just include the slicing in the block indexer directly, so
Particularly when doing batched things, we often want to modify only part of the local stack of a
DSBSparse
matrix, so something likeUnfortunately this will not work, since the block indexer must return a new piece of memory. We should switch to some other way of modifying a specific stack slice. The easiest way of doing this would be to just include the slicing in the block indexer directly, so
or maybe worse
Other options we considered are things like
and personal favorite
Will try to implement this one asap...