add sincos function
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
先閱讀 issue 中連結的 fastmath.jl Julia 實作,並檢視 Stan Math 如何提供純量與複數數學函式。釐清是否需要以 LLVM 為基礎的實作,然後將完成定義為:實作一個回傳與輸入型別相符之 tuple 的 sincos 函式,其中複數輸入使用分開的正弦與餘弦計算。
由索引模型根據 Issue 內容生成。
描述
Neither boost nor Eigen has a sincos function however Julia has a succinct implementation in C at https://github.com/JuliaLang/julia/blob/eabd0212ed974b7128ec77180424090edb4a6d04/base/fastmath.jl#L299. The code is MIT license that is compatible with ours.
A few questions:
- Is it possible to add llvm code like this?
- Do we want to?
The output from this function will be a tuple of whatever the input type was. So if the input is a real the output will be a tuple of reals. If the input is complex then this falls back to calculating sin and cos separately and returning a tuple of complex types.
- 主要語言
- C++
- 星號
- 845
- 分支
- 225
- 平均合併
- 4 天 21 小時
- 30 天內合併 PR
- 13
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
stan-dev/math 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 54/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 54/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
維護者通常 1 天內回覆
-
numerics performance
難度 5/5 一週以上 新手友好度 35/100
stan-dev/math#3481 · 1 個 reaction ·
維護者通常 1 天內回覆
-
`eigendecompose_sym`, `eigenvalues_sym` and `eigenvectors_sym` do not compile for complex matrices of `fvar<var>` or `fvar<fvar<double>>`可能重新可做 關聯的 PR 已關閉且未合併。 未關閉bug
難度 3/5 1-2 天 新手友好度 55/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 69/100
-
area:qmc bug
難度 2/5 1-3 小時 新手友好度 69/100
維護者通常 3 天內回覆
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
維護者通常 1 天內回覆
-
area/ysql kind/bug priority/medium status/awaiting-triage
難度 2/5 1-3 小時 新手友好度 78/100
yugabyte/yugabyte-db#37523 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 66/100