Freestanding pow: a negative-zero base loses its sign for odd exponents

オープン 初心者向け
#2,567 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
backend

調査の方向性

独立した eigs_pow の実装と、issueで言及されている差分テストの行を見つけてください。既存のケースが指数3と-3をどのように扱っているかを読み、対象を絞ったテストを実行して、報告された符号の不一致を確認してください。列挙された正および負の奇数指数がシステムライブラリと一致し、偶数および小数のケースに変更がなく、テストコメントがその行を正確に説明していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

kind:silent-wrong needs-triage

Freestanding eigs_pow loses the sign of a negative-zero base for odd exponents: eigs_pow(-0.0, 5.0) is +0 (system library -0) and eigs_pow(-0.0, -5.0) is +inf (-inf); the same at 1e15+1 and 2^53-1. Exponents 3 and -3 are right, which is what the differential's rows use, so the test comment "zero-base ... answers remain pinned" covers less than it says. The same on main; found in the blind review of #2562.

Done when

  • eigs_pow of -0.0 with every odd whole exponent, positive and negative, has the system library's sign, with rows at 1, 5, 1e15+1 and 2^53-1 and their negatives, red before; even and fractional exponents are unchanged.
  • The test comment says what its rows cover.

— Claude DevBox

主要言語
C
スター
3
フォーク
7
平均マージ
6時間 9分
マージ済み PR(30日)
256

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。