Skip to content

feat(matrix): add matrixIsZero - #429

Open
jobo322 wants to merge 1 commit into
mainfrom
feat/matrix-is-zero
Open

jobo322 wants to merge 1 commit into
mainfrom
feat/matrix-is-zero

Conversation

@jobo322

@jobo322 jobo322 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Adds matrixIsZero, which returns true when every value of a matrix is zero and false as soon as one is not.

matrixIsZero([new Float64Array([0, 0]), new Float64Array([0, 0])]); // true

Edge cases: an empty matrix returns true, -0 counts as zero, NaN and ±Infinity return false.

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.68%. Comparing base (c470879) to head (b826814).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #429   +/-   ##
=======================================
  Coverage   97.68%   97.68%           
=======================================
  Files         230      231    +1     
  Lines        4843     4848    +5     
  Branches     1190     1191    +1     
=======================================
+ Hits         4731     4736    +5     
  Misses        109      109           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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