Slicing Data
returns incorrect results following a transpose()
#2187
Labels
Data
returns incorrect results following a transpose()
#2187
As described in the title. MFE below.
Consider the following numpy array operation:
We then have that
b
is given byand
b.shape
is(3, 2)
.We would expected similar behavior from the Devito
Data
type:but in this case,
g
isand hence
g.shape
is(2, 2)
.Note that
f.data[::2, ::2].T
returnsand
f.data.T
returnswhich is of the correct form, but slicing this transposed
Data
will in many cases result in an incorrect output.It would seem that some property of the
Data
object is not being properly updated by the transpose operation.The text was updated successfully, but these errors were encountered: