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

support binary operation between two sparse matrix #82

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

chaoming0625
Copy link
Collaborator

This pull request includes several changes to the brainunit/sparse module, primarily focusing on enhancing binary operations and improving test cases for sparse matrix formats. The most important changes include adding support for binary operations between sparse matrices of the same format and updating test cases to include gradient-based updates.

Enhancements to binary operations:

  • brainunit/sparse/_coo.py: Added support for binary operations between COO matrices with the same row and column indices. Updated error messages for unsupported operations to include the operation name.
  • brainunit/sparse/_csr.py: Added support for binary operations between CSR matrices with the same indices and indptr. Updated error messages for unsupported operations to include the operation name. [1] [2]
  • brainunit/sparse/_csr.py: Added support for binary operations between CSC matrices with the same indices and indptr. Updated error messages for unsupported operations to include the operation name. [1] [2]

Improvements to test cases:

@chaoming0625 chaoming0625 merged commit 3485721 into main Dec 14, 2024
24 checks passed
@chaoming0625 chaoming0625 deleted the update branch December 14, 2024 07:32
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.

1 participant