Repository navigation
[clean_rawdata] Silence spurious Accelerate matmul warning in Riemannian ASR - #858
Conversation
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @claude[bot]'s task in 37s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. Writing a test that reproduces this warning would need Apple Accelerate on macOS arm64. A test on Linux/OpenBLAS would pass with or without the fix, so it would not catch a regression. The numbers don't change, so the existing tests in EEGLAB parity notesNone on behavior. Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
|
Review (Claude Fable): needs more work
DetailsWhat I ran. macOS 26.6, Apple M5 Pro, arm64, Python 3.12.13, NumPy 2.2.6 built on Accelerate, the locked environment (
Is the warning really false? Yes. I looked at the 31 covariance products of that test (32 x 985 or 32 x 986). Each one raises three warnings on this Mac (divide by zero, overflow, invalid value). The inputs are all finite, with no zero and no subnormal value, and sizes between 1e-4 and 483. The results are all finite. They agree with the same product computed without BLAS ( Graphics and histogram. No window changes, so no capture is needed. No number changes (difference exactly 0), so a histogram would show nothing. Code.
What is needed.
Other open pull requests. Outside this pull request. With — orchestrator review |
…ance Apple Accelerate BLAS on macOS arm64 sets FP exception flags on finite GEMM results, so NumPy reported a spurious divide-by-zero warning from asr_process_r. Fixes #855 Co-Authored-By: Claude Opus 5.5 <[email protected]>
f3e2d3f to
c975c69
Compare
Compute the Riemannian ASR chunk covariance with finite_matmul, as the rest of clean_rawdata already does. Apple Accelerate BLAS on macOS arm64 sets FP exception flags on finite GEMM results, so NumPy emitted a spurious divide-by-zero warning. Real non-finite products still warn, and the numbers do not change. The existing sample-data test covers it. The EEGLAB reference run has not been done yet.
Fixes #855
🤖 Generated with Claude Code