Error in assignment to multidimensional arrays
まだ誰も着手していません。
評価
調査の方向性
.NET wrapper の [] インデックス付けおよび代入のエントリポイントから始め、提示された A1D、A2D、A3D の例を CPU バックエンドと OpenCL バックエンドの両方で再現します。多次元配列への単一インデックスによる書き込みが wrapper と ArrayFire 実装のどちらで処理されるかを追跡します。完了の条件は、文書化された代入ケースが両方のバックエンドで一貫して動作することです。
索引モデルが issue の本文から書いたものです。
説明
There's a problem with [] (indexing) operator. Indexing with with one number can be used to read value from the entire table, but it cannot be used to write to multidimensional table. While indexing with 2 or more numbers you can write to any table.
I am not sure, if it is the consequence of C implementation or problem with the wrapper, but this behavior is very unintuitive.
Checked on CPU and OpenCL Backend.
I'll try to fix it on my own
There's an example of the problem
ArrayFire.Array A1D = Data.CreateArray(new int[] { 1, 2, 4 });
A1D[1] = Data.CreateArray(new int[] { 100 });
Util.Print(A1D, "A1");
A2D[0, 0] = Data.CreateArray(new int[] { 11 });
A2D[1] = Data.CreateArray(new int[] { 100 });
Util.Print(A2D, "A");
A3D[1,1,1] = Data.CreateArray(new int[] { 100 });
A3D[0, 1] = Data.CreateArray(new int[] { 100 });
A3D[0] = Data.CreateArray(new int[] { 100 });
Util.Print(A3D[1,1], "A3D");
Generates the output
A1D
[3 1 1 1]
1
100
4
A2D
[3 3 1 1]
100 -1 4
2 2 2
4 0 3
A3D
[2 2 2 1]
1 100
2 -1
2 4
0 100
- 主要言語
- C#
- スター
- 76
- フォーク
- 19
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
arrayfire/arrayfire-dotnet のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
-
Error in ar_topk オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
af_index_t オープンquestion
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
arrayfire/arrayfire-dotnet#31 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
arrayfire/arrayfire-dotnet#29 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-dotnet#25 · コメント 5 件 ·
arrayfire/arrayfire-dotnet の issue をすべて見る
似ている issue
-
:watch: Not Triaged dotnet-fsharp/svc
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/azure-sdk-for-net#63292 · コメント 3 件 · リアクション 1 件 ·
-
Issue-Enhancement Needs-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
PowerShell/PowerShell#28061 · リアクション 2 件 ·
-
dependencies needs-team-triage server-Azure.Mcp
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
aspnet-core/svc aspnetcore-signalr/subsvc doc-enhancement Pri2 SignalR
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
dotnet/AspNetCore.Docs#37729 ·