Skip to content

docs: explain how COO products use the fill value - #1039

Open
yqia03 wants to merge 1 commit into
pydata:mainfrom
yqia03:docs/coo-product-fill-value
Open

yqia03 wants to merge 1 commit into
pydata:mainfrom
yqia03:docs/coo-product-fill-value

Conversation

@yqia03

@yqia03 yqia03 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

docs: explain how COO products use the fill value

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • 🪄 Feature
  • 🐞 Bug Fix
  • 🔧 Optimization
  • 📚 Documentation
  • 🧪 Test
  • 🛠️ Other

Related issues

No linked issue.

Checklist

  • Code follows style guide
  • Tests added
  • Documented the changes

Please explain your changes below.

Summary

Correct the Operations guide's description of implicit entries. In COO.prod, a slice with k implicit entries gets a factor of fill_value**k. The example covers a partially stored row and a fully implicit row.

Evidence

Input with fill value 2  [[3, 2, 2], [2, 2, 2]]
Old note's first row    3 * 0 = 0
Actual row products     [12, 8] in Sparse and NumPy

The new example ran as three doctest statements with zero failures. The existing test_prod_along_axis passed on the CPU.

Merge scope

The patch edits only the Reductions section of the Operations guide and can be reverted as a documentation edit.

OpenAI Codex prepared the documentation, verification, and this description. No human pre-submission review was performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant