linear_operator icon indicating copy to clipboard operation
linear_operator copied to clipboard

Fix dtype/device mismatch in _get_indices()

Open Turakar opened this issue 1 year ago • 0 comments

Previously, this method failed if row_index and col_index have different dtype/device. Now, we first unify these and do the comparisons afterwards.

Differing dtype/device combinations can be created for example by _convert_indices_to_tensors() in __getitem__() (reference).

Turakar avatar Jan 08 '24 09:01 Turakar