ILGPU
ILGPU copied to clipboard
[QUESTION]: The Different Behavior between Copy From 1D View and 2D View
Question
If use CopyFromCPU, For a matrix
var matrix = new int[,]
{ { 0, 1, 2, 3, 4 },
{ 5, 6, 7, 8, 9 },
{ 10, 11, 12, 13, 14 } };
No Matter What Stride I Choose,The extent must be new LongIndex2D(3, 5),means that DenseX is the same with DenseY。
But if CopyFrom ArrayView1D,can easily apply As2DDenseXView(new LongIndex2D(5, 3)) and As2DDenseYView(new LongIndex2D(3, 5))。
so why design in this way,Can you recommend some documents related to design。
Environment
- ILGPU version: [1.5.3]
- .NET version: [.NET 9]
Additional context
No response