ENH: real and complex dtype functions
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
issue 中沒有指定檔案、測試或進入點。找出現有的 dtype 相關工具與測試,接著實作所要求的兩個函式,並驗證 issue 中列出的 float32、float64、complex64 與 complex128 實數/複數對應關係。
由索引模型根據 Issue 內容生成。
描述
Hello! Very excited about this library, as it (hopefully) provides a place to put functions that are array agnostic and usable by many people. Let me describe two simple ones that I'd like to make a PR for.
I'd like to add functions real_type(dtype) and complex_type(dtype). These are simple:
real_typetakes in a real or complex dtype, and returns the corresponding floating-point dtype. Socomplex128 -> float64, complex64 -> float32, float64 -> float64, float32 -> float32.complex_typetakes in a real or complex dtype, and returns the corresponding complex floating-point dtype. Sofloat64 -> complex128, float32 -> complex64, complex128 -> complex128, complex64 -> complex64.
This can be really helpful in application code to work out the correct types. Shall I make a PR for these?
- 主要語言
- Python
- 星號
- 34
- 分支
- 34
- 平均合併
- 5 小時 24 分鐘
- 30 天內合併 PR
- 46
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
data-apis/array-api-extra 的其他 Issue
-
enhancement new function
難度 2/5 1-3 小時 新手友好度 72/100
data-apis/array-api-extra#992 · 1 則留言 ·
維護者通常 1 天內回覆
-
Add one_minus_square可能已有人在做 @NeilGirdhar 於 1 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 35/100
data-apis/array-api-extra#1050 · 1 則留言 ·
維護者通常 1 天內回覆
-
BUG: searchsorted: needs to broadcast batch shapes可能已有人在做 @nightcityblade 於 10 天前認領。 未關閉bug
難度 3/5 1-2 天 新手友好度 56/100
data-apis/array-api-extra#1014 · 2 則留言 ·
維護者通常 1 天內回覆
-
ENH, TST: Add support for MLX as array backend可能已有人在做 @prady0t 於 19 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
data-apis/array-api-extra#1006 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
data-apis/array-api-extra#1002 · 1 則留言 ·
維護者通常 1 天內回覆
查看 data-apis/array-api-extra 的全部 Issue
相似的 Issue
-
[Resource]: Lore未關閉resource-submission validation-passed
難度 1/5 1 小時以內 新手友好度 88/100
hesreallyhim/awesome-claude-code#3234 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
openminion/openminion#376 ·
維護者通常 1 天內回覆
-
Type: ☹︎ Bug
難度 2/5 1-3 小時 新手友好度 78/100
posit-dev/great-tables#1028 ·
維護者通常 1 天內回覆
-
integration: apple_tv
難度 2/5 1-3 小時 新手友好度 78/100
home-assistant/core#188282 · 1 則留言 ·
維護者通常 1 天內回覆
-
A "since" range is worded as a career: "the past two seasons" says "regular season career (2025 on)"未關閉P4: low
難度 2/5 1-3 小時 新手友好度 65/100
jeffknupp/association#538 ·