From b6b701bd42c78e9b862de0abbf4d32b24c74f652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Wed, 3 May 2017 06:02:01 +0300 Subject: [PATCH] fix the C version Former-commit-id: 470dfcd9336bed06916463770a8a144d67e0fd95 --- qpms/translations.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qpms/translations.c b/qpms/translations.c index c62eb11..66d5ed7 100644 --- a/qpms/translations.c +++ b/qpms/translations.c @@ -682,6 +682,7 @@ int qpms_cython_trans_calculator_get_AB_arrays_loop( for (int ax = 0; ax < resnd; ++ax){ assert(A_shape[ax] == B_shape[ax]); assert(A_strides[ax] == B_strides[ax]); + if (daxis == ax || saxis == ax) continue; if (A_shape[ax] > A_shape[longest_axis]) longest_axis = ax; } const npy_intp longlen = resultshape[longest_axis];