Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Validated transforms

オープン
#94 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
backend

調査の方向性

まず、issue にある BigFloat RoundDown/RoundUp の例を再現し、次に src/transforms_mpfr.c とその ccall 算術を調査します。報告された mpfr_neg のケースを含め、関係する操作を監査し、検証済みの transforms が両方の丸めモードで token error なしに正しく動作することを確認してください。

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

説明

beginner

This would be fun. As seen below, it almost "just works," but would require a careful investigation into https://github.com/MikaelSlevinsky/FastTransforms/blob/master/src/transforms_mpfr.c. The ccalls pass on Base.MPFR.RoundingMode[] to the C library, so it's just a matter of making sure every arithmetic operation is appropriate for RoundUp/Down. For example, I think the token error is due to using mpfr_neg.

julia> using FastTransforms

julia> setrounding(BigFloat, RoundDown)
MPFRRoundDown::MPFRRoundingMode = 3

julia> pd = plan_leg2cheb(BigFloat, 10)
FastTransforms Legendre--Chebyshev plan for 10-element array of BigFloat

julia> Pd = lmul!(pd, Matrix{BigFloat}(I, 10, 10));

julia> setrounding(BigFloat, RoundUp)
MPFRRoundUp::MPFRRoundingMode = 2

julia> pu = plan_leg2cheb(BigFloat, 10)
FastTransforms Legendre--Chebyshev plan for 10-element array of BigFloat

julia> Pu = lmul!(pu, Matrix{BigFloat}(I, 10, 10));

julia> Pu-Pd # rigorously off by only one entry
10×10 Array{BigFloat,2}:
 0.0  0.0  -2.15904e-78  0.0          2.15904e-78  0.0          2.15904e-78  0.0          3.23856e-78  0.0        
 0.0  0.0   0.0          8.63617e-78  0.0          8.63617e-78  0.0          1.07952e-77  0.0          8.63617e-78
 0.0  0.0   0.0          0.0          8.63617e-78  0.0          8.63617e-78  0.0          1.07952e-77  0.0        
 0.0  0.0   0.0          1.72723e-77  0.0          1.29543e-77  0.0          1.29543e-77  0.0          1.29543e-77
 0.0  0.0   0.0          0.0          1.72723e-77  0.0          1.72723e-77  0.0          1.51133e-77  0.0        
 0.0  0.0   0.0          0.0          0.0          2.59085e-77  0.0          1.94314e-77  0.0          1.51133e-77
 0.0  0.0   0.0          0.0          0.0          0.0          3.45447e-77  0.0          1.94314e-77  0.0        
 0.0  0.0   0.0          0.0          0.0          0.0          0.0          3.88628e-77  0.0          2.15904e-77
 0.0  0.0   0.0          0.0          0.0          0.0          0.0          0.0          3.88628e-77  0.0        
 0.0  0.0   0.0          0.0          0.0          0.0          0.0          0.0          0.0          4.31808e-77

julia> 
主要言語
Julia
スター
282
フォーク
27
平均マージ
53分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JuliaApproximation/FastTransforms.jl のほかの issue

JuliaApproximation/FastTransforms.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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