Skip to content

Commit

Permalink
removed an is_F_contiguous check in reshapeImpl that caused inconsist…
Browse files Browse the repository at this point in the history
…ent behaviour
  • Loading branch information
darkestpigeon committed Aug 20, 2024
1 parent caf0d8d commit 1684c13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/arraymancer/tensor/private/p_shapeshifting.nim
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ proc reshapeImpl*(t: AnyTensor, new_shape: varargs[int]|Metadata|seq[int],
if t.is_C_contiguous:
reshape_no_copy(t, new_shape, result, rowMajor)
result.storage = t.storage
elif t.is_F_contiguous:
reshape_no_copy(t, new_shape, result, colMajor)
result.storage = t.storage
else:
reshape_with_copy(t, new_shape, result)

Expand Down

0 comments on commit 1684c13

Please sign in to comment.