sandialabs / pyttb

Python Tensor Toolbox
https://pyttb.readthedocs.io
BSD 2-Clause "Simplified" License
25 stars 13 forks source link

Teneye: Add preliminary implementation and tests #222

Closed ntjohnson1 closed 1 year ago

ntjohnson1 commented 1 year ago

I found myself in a loud coffee shop unable to work on other stuff so I picked off #72. I am not sure if the custom combinator code is needed elsewhere but itertools combinations with replacement should be an appropriate replacement with the advantage that it doesn't have to actually generate all the index sets in memory. On my laptop I didn't see any major improvement for this because N>=8, M>=8 had a huge result tensor anyway.


:books: Documentation preview :books:: https://pyttb--222.org.readthedocs.build/en/222/