You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can someone please shed some light on the following issue? I have a 2D NArray with TilePattern and use global_at to determine the global offsets of elements in the tiles. Consider the following example (numbers are unit IDs):
If I try to get the global offsets of the first and last element of the block {0, 0}, I do
// first element in block {0, 0}
pattern.global_at({0, 0}); // returns 0, as expected
// last element in block {0, 0}
pattern.global_at({1, 1}); // returns 3, expected?
The second call to global_at returns 3, which is the offset inside the first block. The documentation of global_at states that it provides Global coordinates to global position in the pattern's iteration order. It is my understanding that the global iteration order is linear through the row and column, unlike the local iteration order. Thus, the second call to global_at should return 9.
Is my understanding of the term global iteration order incorrect or is TilePattern::global_at broken?
The text was updated successfully, but these errors were encountered:
Can someone please shed some light on the following issue? I have a 2D NArray with TilePattern and use
global_at
to determine the global offsets of elements in the tiles. Consider the following example (numbers are unit IDs):If I try to get the global offsets of the first and last element of the block
{0, 0}
, I doThe second call to
global_at
returns 3, which is the offset inside the first block. The documentation ofglobal_at
states that it providesGlobal coordinates to global position in the pattern's iteration order.
It is my understanding that the global iteration order is linear through the row and column, unlike the local iteration order. Thus, the second call toglobal_at
should return 9.Is my understanding of the term
global iteration order
incorrect or isTilePattern::global_at
broken?The text was updated successfully, but these errors were encountered: