arrayfire / arrayfire/arrayfire-py
Array API Item Assignment
- 主要語言
- Python
- 星號
- 2
- 分支
- 5
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I was trying to use the ArrayFire Array API here to set these values as I'm building out a Lorenz Attractor. Did you have any ideas on how to resolve/workaround an error like this? I'm trying not to just define these in standard ArrayFire arrays, then just calling _asarray on them.
```
import arrayfire.array_api as np
dxdt = np.empty(x + 1)
dydt = np.empty(x + 1)
dzdt = np.empty(x + 1)
# Initial values
dxdt[0], dydt[0], dzdt[0] = (0.0, 1.0, 1.05)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[2], [line 19](vscode-notebook-cell:?execution_count=2&line=19)
[16](vscode-notebook-cell:?execution_count=2&line=16) dzdt = np.empty(x + 1)
[18](vscode-notebook-cell:?execution_count=2&line=18) # Initial values
---> [19](vscode-notebook-cell:?execution_count=2&line=19) dxdt[0], dydt[0], dzdt[0] = (0.0, 1.0, 1.05)
[21](vscode-notebook-cell:?execution_count=2&line=21) for i in range(x):
[22](vscode-notebook-cell:?execution_count=2&line=22) dxdt[i + 1] = dxdt[i] + σ * (dydt[i] - dxdt[i]) * dt # P(y-x)
TypeError: 'Array' object does not support item assignment
---------------------------------------------------------------------------
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
重現內容位於 issue 內文中,並使用 arrayfire.array_api;先執行它以確認不支援項目指定的錯誤。追蹤 Array API Array 的實作以及現有的索引測試,然後判斷預期的完成方式是支援指定,還是提供有文件說明的替代方案。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100