Skip to content

to_dense: add index_maps kwarg so that dense->symmray->dense can easily roundtrip - #46

Merged
jcmgray merged 1 commit into
mainfrom
jcmgray/densify-with-index-map
Aug 25, 2026
Merged

to_dense: add index_maps kwarg so that dense->symmray->dense can easily roundtrip#46
jcmgray merged 1 commit into
mainfrom
jcmgray/densify-with-index-map

Conversation

@jcmgray

@jcmgray jcmgray commented Aug 25, 2026

Copy link
Copy Markdown
Owner

This PR adds an index_maps kwarg to .to_dense(), that matches the from_dense format. This allows one to easily construct a symmray array from a dense array, and then convert it back with compatible basis ordering, for testing or other purposes.

@jcmgray
jcmgray merged commit 5e612fc into main Aug 25, 2026
14 checks passed
@jcmgray
jcmgray deleted the jcmgray/densify-with-index-map branch August 25, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant