sandialabs / pyttb

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

Sptensor mask #259

Closed ntjohnson1 closed 1 year ago

ntjohnson1 commented 1 year ago

We were using tt_ismember_rows incorrectly in mask. -1 was a flag for failed match but also yields a valid index into an array. First fixed the bug then updated the ismember_rows interface to try to make this incorrect usage more obvious in the future.

Resolves https://github.com/sandialabs/pyttb/issues/258


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