Skip to content
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

Filter column indices of sparse matrix to ensure non-negativity #576

Merged
merged 2 commits into from
May 27, 2024

Conversation

NAThompson
Copy link
Contributor

In Issue #573, I observed that scipys compressed sparse column matrix was throwing an exception about specification of negative indices. I traced this issue to the column specification in the C++ implementation of RMTB.

I could not figure out what precisely was going wrong. However, by simply replacing all negative column indices with zeros, I found that the unit tests pass. This is in no way a permanent solution, but given the lack of shared understanding of this code, it is preferable to it being fully nonfunctional.

While we're at it, replace all internal ints by long in order to support larger model sizes, similar to the diff made in RMTC.

In Issue SMTorg#573, I observed that `scipy`s compressed sparse column matrix
was throwing an exception about specification of negative indices. I
traced this issue to the column specification in the C++ implementation
of RMTB.

I could not figure out what precisely was going wrong. However, by
simply replacing all negative column indices with zeros, I found that
the unit tests pass. This is in no way a permanent solution, but given
the lack of shared understanding of this code, it is preferable to it
being fully nonfunctional.

While we're at it, replace all internal `int`s by `long` in order to
support larger model sizes, similar to the diff made in RMTC.
@relf relf merged commit 3218b11 into SMTorg:master May 27, 2024
8 checks passed
@NAThompson NAThompson deleted the 573-negative-index branch May 27, 2024 14:36
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.

None yet

2 participants