Skip to content

Conversation

@mercush
Copy link
Owner

@mercush mercush commented Jan 26, 2026

These parameters can be inferred from the inputs:

  • n_rows = row_ptr.shape(0) - 1 (CSR format invariant)
  • n_cols = dense_b.shape(1) (output columns match dense matrix)

This prevents bugs where incorrect parameters could cause out-of-bounds memory access.

Proposed changes

Please include a description of the problem or feature this PR is addressing. If there is a corresponding issue, include the issue #.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

claude and others added 3 commits January 26, 2026 20:42
These parameters can be inferred from the inputs:
- n_rows = row_ptr.shape(0) - 1 (CSR format invariant)
- n_cols = dense_b.shape(1) (output columns match dense matrix)

This prevents bugs where incorrect parameters could cause out-of-bounds
memory access.
Remove n_rows and n_cols parameters from test calls to match the
updated function signature that infers these values from inputs.
@mercush mercush merged commit 2b45f8d into main Jan 26, 2026
11 checks passed
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.

3 participants