From 1684c13975d1ac4387ff2e06595254e9b53745bf Mon Sep 17 00:00:00 2001 From: darkestpigeon Date: Tue, 20 Aug 2024 22:03:55 +0200 Subject: [PATCH] removed an is_F_contiguous check in reshapeImpl that caused inconsistent behaviour --- src/arraymancer/tensor/private/p_shapeshifting.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/arraymancer/tensor/private/p_shapeshifting.nim b/src/arraymancer/tensor/private/p_shapeshifting.nim index 840b1c8e..7cf1214a 100644 --- a/src/arraymancer/tensor/private/p_shapeshifting.nim +++ b/src/arraymancer/tensor/private/p_shapeshifting.nim @@ -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)