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

Fix issue with unsorted indices in csc_matrix #1524

Merged
merged 3 commits into from Jan 26, 2024

Conversation

rcannood
Copy link
Contributor

@rcannood rcannood commented Jan 24, 2024

This PR solves an issue with converting csc matrices with unsorted indices, similar to #727.

  • Add test to check whether reticulate can convert csc_matrix, csr_matrix and coo_matrix with unsorted indices
  • Sort indices of csc_matrix before converting to dgCMatrix

In https://github.com/rcannood/reticulate/pull/1, the CI checks fails for the first commit (in which I added a test to detect this problem), but the CI checks succeed for the second commit (in which I added the fix).

rcannood and others added 2 commits January 24, 2024 12:46
…rix as well

Co-authored-by: Kai Waldrant <kai@data-intuitive.com>
Co-authored-by: Kai Waldrant <kai@data-intuitive.com>
@t-kalinowski
Copy link
Member

@rcannood Thank you for the PR, this looks great. Would you like to add a NEWS entry?

@rcannood
Copy link
Contributor Author

Done!

@t-kalinowski t-kalinowski merged commit 0e5676e into rstudio:main Jan 26, 2024
12 checks passed
@t-kalinowski
Copy link
Member

Thank you!

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