-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BlockSparseArrays] Function for fusing dimensions of BlockSparseArray
#1246
Conversation
Note that the |
There are a few limitations right now:
|
This introduces
fusedims
, a function for fusing arbitrary groups of dimensions of aBlockSparseArray
. This is a superset of combiner contraction, since it allows combining multiple groups of indices in one operation (for example, it can matricize a block sparse array in one operation, i.e. for use in ITensor SVD code).This isn't being used inside combiner contraction yet but the goal will be to use this as a backend for that.
It additionally adds some other useful block sparse operations like slicing according to subblocks. Here is an example of both functionalities:
This outputs:
@emstoudenmire